예제 #1
0
 def test_possibleJumps(self):
     black = Pieces.Black()
     board = {1: black, 6: self.red}
     self.assertEqual(Checkers.possibleJumps(1, board), [{10: black}])
예제 #2
0
 def test_possibleJumps_wrongDoubleJump(self):
     black = Pieces.Black()
     board = {1: black, 6: self.red, 9: self.red}
     expectedBoard = [{9: self.red, 10: black}]
     self.assertEqual(Checkers.possibleJumps(1, board), expectedBoard)