Fixed rolling stone overanxious transpose bug.
This commit is contained in:
@@ -36,10 +36,10 @@ class RollingStoneTest(unittest.TestCase):
|
||||
reaches_goal(playfield, 10, 10, steps, (0, 0), (9, 9)))
|
||||
|
||||
print()
|
||||
playfield, steps = generate_simple_playfield(10, 10, 4, 11)
|
||||
print_playfield(playfield, 10, 10, True)
|
||||
playfield, steps = generate_simple_playfield(10, 15, 4, 150)
|
||||
print_playfield(playfield, 10, 15, False)
|
||||
self.assertTrue(
|
||||
reaches_goal(playfield, 10, 10, steps, (0, 0), (9, 9)))
|
||||
reaches_goal(playfield, 10, 15, steps, (0, 0), (9, 14)))
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user