Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 700 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 700 Bytes

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