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: 4 months 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 (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-05-25T15:31:00.000Z (about 2 years ago)
- Last Synced: 2025-01-30T01:43:28.713Z (6 months 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

## 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.