Ejemplo n.º 1
0
 def test_moves(self):
     """testing queen's invalid moves"""
     queen = Queen()
     self.board = Board(10, 10)
     queen.set_position(5, 5)
     self.board.set_tile(1, 5, 5)
     valid_moves_4 = queen.valid_moves(self.board)
     self.assertEqual(len(valid_moves_4), 35)