Esempio n. 1
0
func TestBoardIsFull(t *testing.T) {
	board := NewBoard(rules.THREE_BY_THREE)
	testhelper.AddMarkToPositions(board, rules.FIRST_PLAYER, 0, 1, 2, 3, 4, 5, 6, 7, 8)
	assert.True(t, board.Full())
}
Esempio n. 2
0
func TestBoardIsNotFull(t *testing.T) {
	board := NewBoard(rules.THREE_BY_THREE)
	assert.False(t, board.Full())
}