Ejemplo n.º 1
0
 def test_cannot_move_to_same_position(self):
     b = Board("my board")
     b.AddPiece((0,0), "a")
     b.AddPiece((10,10), "b")
     self.assertFalse(b.IsValidMove((0,0), (0,0)))
Ejemplo n.º 2
0
 def test_cannot_move_empty_position(self):
     b = Board("my board")
     self.assertFalse(b.IsValidMove((0,0), (1,1)))