Example #1
0
 def testValidMoveInvalidTiles(self):
     invalid = move.valid_move(
         2,
         types.new_movement('Treads'),
         [types.tiles['plain'] for i in range(10)],
         [(1, x * 2) for x in range(10)])
     self.assertFalse(invalid)
Example #2
0
 def testMoveSixTreadOverTwoPlain(self):
     valid = move.valid_move(
         6,
         types.new_movement('Treads'),
         [types.tiles['plain'], types.tiles['plain']],
         [(1, 1), (1, 2)])
     self.assertTrue(valid)
Example #3
0
 def testMoveTwoTreadOverTenPlain(self):
     invalid = move.valid_move(
         2,
         types.new_movement('Treads'),
         [types.tiles['plain'] for i in range(10)],
         [(1, x) for x in range(10)])
     self.assertFalse(invalid)