def test_legal_move_creatures_out_of_bounds_locaiton(self): test_world = World(4, 0) test_creature = Creature([0, 0], INIT_HUNGER, 1) self.assertFalse(test_creature.legal_move([6, 6], test_world))
def test_legal_move_creatures_out_of_bounds_locaiton(self): test_world = World(4, 0) test_creature = Creature([0, 0], INIT_HUNGER, 1) self.assertFalse(test_creature.legal_move([6, 6], test_world))
def test_legal_move_creatures_legal_locaiton(self): test_world = World(4, 0) test_creature = Creature([0, 0], INIT_HUNGER, 1) self.assertTrue(test_creature.legal_move([1, 0], test_world))
def test_legal_move_creatures_legal_locaiton(self): test_world = World(4, 0) test_creature = Creature([0, 0], INIT_HUNGER, 1) self.assertTrue(test_creature.legal_move([1, 0], test_world))