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

https://github.com/codeofandrin/tictactoe-console

Tic-Tac-Toe game made for console including AI.
https://github.com/codeofandrin/tictactoe-console

Last synced: about 1 year ago
JSON representation

Tic-Tac-Toe game made for console including AI.

Awesome Lists containing this project

README

          

# Tic-Tac-Toe console game

**This is the equivalent of my [Tic-Tac-Toe website](https://github.com/puncher1/tictactoe-website) made for the console, which comes with an AI based on the minimax algorithm.**

![image](https://user-images.githubusercontent.com/65789180/201497914-49aa4198-304e-4deb-930a-0c2469f7eead.png)


## Difficulty Levels
This game comes with 3 difficulty levels

* **easy:** The "AI" (if you still can tell this AI) just picks a field randomly. This makes it really easy for the player to win.
* **medium:** The AI chooses either a random field or if the AI or player needs a field to win, it chooses that field. This makes it more difficult, but still winnable.
* **impossible:** The AI uses the minimax algorithm for every choose of its field. This makes it impossible to win. The player either makes a draw or loses.