Beispiel #1
0
func (t *testAiPlayerSuite) TestPlayWinningMove() {
	board, player := aiPlayerSuiteSetup()
	game.MakeMoves(board, 0, 4, 1, 5)
	move := player.Play()
	t.Equal(2, move)
}
Beispiel #2
0
func (t *testAiPlayerSuite) TestPlayGameTyingMove() {
	board, player := aiPlayerSuiteSetup()
	game.MakeMoves(board, 0, 1, 2, 4, 3, 5, 7, 6)
	move := player.Play()
	t.Equal(8, move)
}