An open API service indexing awesome lists of open source software.

https://github.com/oniani/tic-tac-toe

A simple Tic-tac-toe game with the GUI and 3 levels of difficulty
https://github.com/oniani/tic-tac-toe

algorithms memoization minimax tic-tac-toe tic-tac-toe-python

Last synced: 7 months ago
JSON representation

A simple Tic-tac-toe game with the GUI and 3 levels of difficulty

Awesome Lists containing this project

README

          

# Tic-tac-toe

This is an implementation of a simple [Tic-tac-toe](https://en.wikipedia.org/wiki/Tic-tac-toe) game with 3 levels
of difficulty. It comes with a simple-to-use GUI.

![Tic-tac-toe](./images/tictactoe.png)

## Algorithm

The best move for a computer is determined by the [Minimax](https://en.wikipedia.org/wiki/Minimax) algorithm.
For a game as simple as 3 X 3 Tic-tac-toe, [alpha-beta pruning](https://en.wikipedia.org/wiki/Alpha%E2%80%93beta_pruning) is not needed,
and a simple minimax with [memoization](https://en.wikipedia.org/wiki/Memoization) is sufficient.

## License

[MIT License](LICENSE)