Exemplo n.º 1
0
 def test_piece_at_with_piece(self):
     b = Board().place_piece(p1)
     self.assertEqual(b.piece_at((0, 1)), p1)
Exemplo n.º 2
0
 def test_move_piece(self):
     b = Board().place_piece(p2).move_piece((0, 0), (0, 1))
     self.assertTrue(isinstance(b.piece_at((0, 1)), Piece))
     self.assertEqual(b.piece_at((0, 0)), None)
Exemplo n.º 3
0
 def test_piece_at_with_no_piece(self):
     b = Board()
     self.assertEqual(b.piece_at((0, 0)), None)