Change name Stone to more abstract Blocker.

This commit is contained in:
Niels Serup
2012-08-08 11:53:16 +02:00
parent e759052c60
commit e79b9d20d6
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)))