コード例 #1
0
ファイル: moveUnitTests.py プロジェクト: tlasica/Zertz4Fun
 def test_SingleCaptureNotValidToNonEmptyField(self):
     game = Game()
     Placement(BallColors.BLACK, "a1", "a2").execute(game)
     Placement(BallColors.GRAY, "b1", "c1").execute(game)
     m3 = Capture(["a1", "c1"])
     res = m3.validate(game)
     self.assertFalse(res[0])
コード例 #2
0
ファイル: moveUnitTests.py プロジェクト: tlasica/Zertz4Fun
 def test_SingleCaptureNotValidWithEmptyMiddle(self):
     game = Game()
     Placement(BallColors.BLACK, "a1", "a2").execute(game)
     m2 = Capture(["a1", "c1"])
     res = m2.validate(game)
     self.assertFalse(res[0])