Copy src/snake_game/food.py and tests/test_food.py from the base: class Food(Turtle), whose __init__ calls super().__init__() and refresh, and whose random place comes from one function that the tests replace. The values are checked against the lectures in MIL-003.
Phase: MIL-002
Copy `src/snake_game/food.py` and `tests/test_food.py` from the base: `class Food(Turtle)`, whose `__init__` calls `super().__init__()` and `refresh`, and whose random place comes from one function that the tests replace. The values are checked against the lectures in MIL-003.
Phase: MIL-002
Tirsvad
added this to the MIL-002: Adopt the game milestone 2026-10-08 11:05:16 +02:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Copy
src/snake_game/food.pyandtests/test_food.pyfrom the base:class Food(Turtle), whose__init__callssuper().__init__()andrefresh, and whose random place comes from one function that the tests replace. The values are checked against the lectures in MIL-003.Phase: MIL-002