Back to Python Mini Projects

Tic-Tac-Toe-AI

projects/Tic_tac_toe_with_ai/README.md

latest1.6 KB
Original Source

Tic-Tac-Toe-AI

Adding a simple AI to the Tic-Tac-Toe Game:

3 modes:

  • Player vs. Player (2 - player mode)
  • Player vs. AI (1 - player mode)
  • AI vs. AI (for fun)

To view this project on a live terminal:

  • Click here.
  • And then, click on <kbd>Run</kbd>!

References

Logic

  • Optimal Tic Tac Toe Moves

DEMO:

The board will be printed out every time a player makes a move.

The board will look like this! The positions of this 3 x 3 board is same as the keypad on the right side of your key board.

You just have to input the position(1-9).

Author: