---
title: 'Two AI Agents Autonomously Write a Tic-Tac-Toe Game in Python'
source: 'https://youtube.com/watch?v=6s8NegUxT18'
video_id: '6s8NegUxT18'
date: 2026-07-14
duration_sec: 0
---

# Two AI Agents Autonomously Write a Tic-Tac-Toe Game in Python

> Source: [Two AI Agents Autonomously Write a Tic-Tac-Toe Game in Python](https://youtube.com/watch?v=6s8NegUxT18)

## Summary

The video demonstrates a system using two AI agents that autonomously collaborate to write a tic-tac-toe game in Python. The agents communicate, search Google for information, and produce working code within minutes.

### Key Points

- **System Overview** [00:00] — Two AI agents cooperate autonomously to write a tic-tac-toe game in Python.
- **Agent Workflow** [00:15] — The agents use ChatGPT and Google search to gather information and generate code.
- **Execution and Result** [00:30] — The system runs and produces a working tic-tac-toe game in about 2 minutes and 50 seconds.
- **Testing the Game** [01:00] — The generated code is tested; it correctly handles wins and draws.

### Conclusion

The autonomous AI agent system successfully creates a functional Python game, showcasing the potential of multi-agent collaboration for coding tasks.

## Transcript

I created the system with two AI agents to cooperate autonomously to write a tic-tac-toe game in Python here you can see the flow shot of my autonomous AI agent system for coding so basically here we use those chat GPT agents go to Google search for information and ultimately create a working python code let's just run this here you can see the two agents are talking to each other and ultimately creating the finished code I'm just gonna copy it and see how this goes okay so that was about 2 minutes and 50 seconds let me copy that and test it enter all right this looks good let's see what happens if we draw [Music] [Applause] ah here we go X wins okay cool that works let's do something else [Music]
