- Create a
State
type. - Create a
Move
type, which is transitions betweenState
s. - Implement the
Game
interface, which list moves, performs moves, and scores the games.
You can now do several things with the modeled game, such as play it with Minimax
.
Play Tic-Tac-Toe against an AI.
yarn run play ttt --player2 ai