Merge branch 'master' of hongabar.org:robotgame

This commit is contained in:
Sakse Dalum
2012-08-08 13:27:08 +02:00
2 changed files with 9 additions and 12 deletions

View File

@@ -10,15 +10,15 @@ class RollingStoneTest(unittest.TestCase):
playfield_example_succeed = {
(0, 0): Down,
(0, 2): Right,
(1, 3): Stone,
(2, 1): Stone,
(1, 3): Blocker,
(2, 1): Blocker,
(2, 2): Down,
(2, 3): Right,
}
self.assertTrue(reaches_goal(playfield_example_succeed,
4, 4, 100, (0, 0), (3, 3)))
playfield_example_succeed[(1, 2)] = Stone
playfield_example_succeed[(1, 2)] = Blocker
self.assertFalse(reaches_goal(playfield_example_succeed,
4, 4, 100, (0, 0), (3, 3)))