Skip to content

Karafakeu/TicTacToe-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TicTacToe-solver

A simple console Tic Tac Toe game with a computer side playing as one of the players, running the minimax alghorithm with alpha-beta pruning.

Explanation

game.py

Contains the main function and the game loop, as well as functions needed for the running of the game, namely for printing the field and checking the winner.

playerInput.py

Asks the player for a move, and then makes sure the move can be played and is in the correct format.

solverInput.py

Minimax function with alpha-beta pruning for the simulation of the best move for the solver (computer).

Usage

Simply run the game.py file using python inside your console or IDE.

python game.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages