TicTacToe.Game (tic_tac_toe v2.0.1) View Source
Functions to modify the game state.
Link to this section Summary
Link to this section Types
Specs
mode() :: :original | :notakto | :misere
Specs
t() :: %TicTacToe.Game{ board: TicTacToe.Board.t(), current_player: nil | TicTacToe.Board.player(), game_mode: mode(), winner: TicTacToe.Scoring.t() }
Link to this section Functions
Specs
Specs
computer_move(t(), TicTacToe.Board.position()) :: t()
Specs
Specs
Specs
player_move(t(), TicTacToe.Board.position()) :: t()