Ejemplo n.º 1
0
 def test_draw(self):
     board = Board()
     engine = GameEngine(board)
     self.fill_board(board, np.array([1, -1, 1], [-1, 1, -1], [1, -1, 1]))
     self.assertTrue(engine.is_draw())
Ejemplo n.º 2
0
 def test_board_doesnt_have_blanks(self):
     board = Board()
     engine = GameEngine(board)
     self.assertFalse(engine.is_draw())
     self.fill_board(board, np.array([[1, 1, 1], [1, 1, 1], [1, 1, 1]]))
     self.assertTrue(engine.is_draw())