Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gemmus/tictactoe-ai
Built with minimax algorithm, using pygame.
https://github.com/gemmus/tictactoe-ai
minimax-algorithm numpy oop pygame python tic-tac-toe
Last synced: about 1 month ago
JSON representation
Built with minimax algorithm, using pygame.
- Host: GitHub
- URL: https://github.com/gemmus/tictactoe-ai
- Owner: Gemmus
- Created: 2023-05-25T10:47:20.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-05-25T15:31:00.000Z (over 1 year ago)
- Last Synced: 2024-12-02T13:15:02.367Z (about 1 month ago)
- Topics: minimax-algorithm, numpy, oop, pygame, python, tic-tac-toe
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TicTacToe with AI
Tic Tac Toe game implemented using pygame. Available in 3 modes via keyboard:
- Minimax AI: standard playmode, return to this mode by pressing 1
- Random AI: by pressing 0
- PvP: by pressing g on keyboard
![image](https://github.com/Gemmus/TicTacToe_AI/assets/112064697/f5ff195d-cbaa-4d9d-8a84-0c9c96af5f68)
## Installation
Apply the following steps in listed order, if necessary:
- Install a python supporting IDE.
- Clone or download this repository.
- Open the repository in IDE.
- Required libraries: sys, random, copy, pygame, numpy. Make sure the last two packages are installed.
- Run the main.py file in order to play.