This is one player and two player tic-tac-toe game. In one player mode you can never win against the bot.
This project is built with python3. Pygame which is a python's module is used. MiniMax Algorithm is used for Bot.
- python
- pygame
pip install pygame
- Execute the main.py file to play
- After the game to play again, close the pygame window and execute the program again
- To switch between one player and two player change value of bot_active(boolean variable) on line 8
- To switch first chance change the value of first_play(boolean variable) on line line 7
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request