Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

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.