Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adolbyb/pygame-ai-tictactoe
An AI based Tic Tac Toe Game that plays against you.
https://github.com/adolbyb/pygame-ai-tictactoe
ai ai-games minimax-algorithm pygame python tic-tac-toe
Last synced: about 22 hours ago
JSON representation
An AI based Tic Tac Toe Game that plays against you.
- Host: GitHub
- URL: https://github.com/adolbyb/pygame-ai-tictactoe
- Owner: ADolbyB
- Created: 2022-12-20T04:48:39.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-08T21:17:19.000Z (10 months ago)
- Last Synced: 2024-02-08T23:08:16.040Z (10 months ago)
- Topics: ai, ai-games, minimax-algorithm, pygame, python, tic-tac-toe
- Language: Python
- Homepage:
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PyGame AI Tic Tac Toe
In this repo, I follow [this tutorial](https://www.youtube.com/watch?v=Bk9hlNZc6sE) to implement a working minimax algorithm in a Tic Tac Toe game using python and pygame, as a part of project research.
Note that this game provides feedback via the terminal during game play, so please be sure to check it out!
## Key Map:
Any of these key commands can be used during game play.
- ` r ` = Reset Game.
- ` g ` = Change Game Mode: Toggle AI Opponent on or off for a 2 human player game.
- ` 0 ` = Change Game Mode to random opponent square selection.
- ` 1 ` = Change Game Mode to Minimax AI opponent.## Game Board Preview:
## Status:
![GitHub repo size](https://img.shields.io/github/repo-size/ADolbyB/pygame-ai-tictactoe?label=Repo%20Size&logo=Github)