Beispiel #1
0
 def test_move_available_east_inside(self):
     width, height = 10, 10
     plateau = Plateau(width, height)
     position, heading = Position(5, 5), 'E'
     self.assertEqual(plateau.move_available(position, heading), True)
Beispiel #2
0
 def test_move_not_available_east_boundary(self):
     width, height = 10, 10
     plateau = Plateau(width, height)
     position, heading = Position(10, 5), 'E'
     self.assertEqual(plateau.move_available(position, heading), False)