Copy src/snake_game/main.py, src/snake_game/__main__.py and tests/test_main.py from the base: the screen set-up, the key bindings, the animation loop with game_is_on, the eating check, the game-over check, the wait for a click and the quiet exit when the window is closed. main imports food and scoreboard only when it runs, so importing it needs neither turtle nor tkinter.
Phase: MIL-002
Copy `src/snake_game/main.py`, `src/snake_game/__main__.py` and `tests/test_main.py` from the base: the screen set-up, the key bindings, the animation loop with `game_is_on`, the eating check, the game-over check, the wait for a click and the quiet exit when the window is closed. `main` imports `food` and `scoreboard` only when it runs, so importing it needs neither `turtle` nor `tkinter`.
Phase: MIL-002
Tirsvad
added this to the MIL-002: Adopt the game milestone 2026-10-08 11:05:20 +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/main.py,src/snake_game/__main__.pyandtests/test_main.pyfrom the base: the screen set-up, the key bindings, the animation loop withgame_is_on, the eating check, the game-over check, the wait for a click and the quiet exit when the window is closed.mainimportsfoodandscoreboardonly when it runs, so importing it needs neitherturtlenortkinter.Phase: MIL-002