Exemple #1
0
 def test_black_piece_cannot_move_northwest(self):
     piece = Piece("black", 10)
     assert not piece.move(Direction.NW)
Exemple #2
0
 def test_white_piece_can_move_northwest(self):
     piece = Piece("white", 10)
     assert piece.move(Direction.NW)
Exemple #3
0
 def test_black_piece_can_move_southwest(self):
     piece = Piece("black", 10)
     assert piece.move(Direction.SW)
Exemple #4
0
 def test_white_piece_cannot_move_southwest(self):
     piece = Piece("white", 10)
     assert not piece.move(Direction.SW)