Package tictactoe defines the game of tic-tac-toe.
Switch branches/tags
Nothing to show
Clone or download
dmitshur player/perfect: Add package.
Implement a perfect tic-tac-toe player. It always wins if the opponent
makes a suboptimal move that opens up an opportunity to guarantee a win.
It never loses.
Latest commit 5e45e74 May 1, 2018


Build Status GoDoc

Package tictactoe defines the game of tic-tac-toe.


go get -u


Path Synopsis
cmd/tictactoe tictactoe plays a game of tic-tac-toe with two players.
player/bad Package bad contains a bad tic-tac-toe player.
player/human Package human contains a human-controlled tic-tac-toe player.
player/perfect Package perfect implements a perfect tic-tac-toe player.
player/random Package random implements a random player of tic-tac-toe.