TicTacToe.Ai (tic_tac_toe v2.0.0) View Source
Function for finding the best next move using MinMax.
Link to this section Summary
Link to this section Functions
Specs
choose_next_position(TicTacToe.Game.t()) :: TicTacToe.Board.position()
Specs
playable_positions(TicTacToe.Game.t()) :: [TicTacToe.Board.position()]
Specs
score(TicTacToe.Game.t()) :: computer_score()
Specs
simulate_move(TicTacToe.Game.t(), TicTacToe.Board.position()) :: TicTacToe.Game.t()