Basic playfield generation complete. Next up: randomization.
This commit is contained in:
@@ -23,5 +23,9 @@ class RollingStoneTest(unittest.TestCase):
|
||||
self.assertTrue(reaches_goal(playfield_example_succeed, 100))
|
||||
self.assertFalse(reaches_goal(playfield_example_fail, 100))
|
||||
|
||||
def test_playfield_generation(self):
|
||||
playfield, min_steps = generate_playfield(10, 10, (0, 0), Down, (9, 9), 10, 5)
|
||||
# self.assertTrue(reaches_goal(playfield, min_steps))
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user