Expand description
Solve any Two-player Minimax game using the Minimax algorithm with Alpha-Beta pruning. Also, where possible, a parallel processing implementation is provided.
Modules§
- games
- Contains sruct and necessary implementations
for
TicTacToe
: a popular two-player game where one player places a symbol - ‘X’ and another player places a symbol - ‘O’ on a square grid with the objective of creating a streak of same symbols of length the size of the grid in any direction. - strategy
Functions§
- play_
tic_ tac_ toe_ against_ computer - Play a game of any size in a REPL against the engine. The default depth of 6 should make the engine reasonably fast.
- play_
tic_ tac_ toe_ against_ computer_ with_ depth - Play a game of any size in a REPL against the engine. The higher the depth, the longer it takes and the more accurately the engine performs.