Exemple #1
0
 def test_remove_piece(self):
     p = Piece((0, 0), Owner.PLAYER, Rank('1'))
     mt = Board()
     b = Board().place_piece(p).remove_piece((0, 0))
     self.assertEqual(mt.serialize(), b.serialize())
Exemple #2
0
 def test_serialize_board_with_piece(self):
     b = Board().place_piece(p1)
     self.assertEqual(b.serialize(), "( ( A2 1 ) )")