Exemple #1
0
 def test_fail_pawn_move(self):
     pawn = Pawn('white')
     self.assertFalse(pawn.can_move('e2', 'e8'))
Exemple #2
0
 def test_fail_pawn_move_back(self):
     pawn = Pawn('white')
     self.assertFalse(pawn.can_move('b4', 'b3'))
Exemple #3
0
 def test_pawn_move(self):
     pawn = Pawn('white')
     self.assertTrue(pawn.can_move('b4', 'b5'))
     self.assertTrue(pawn.can_move('e7', 'e8'))