Skip to content

Conversation

@rensebastien
Copy link

This change modifies the snake game to bring new features

Changes on freegames/snake.py :

A new state dictionary ('start', 'playing', 'over') now manages the game.
The game now waits at a "Press SPACE to start" screen.
The move function only executes when state == 'playing'.
On game over, it displays a "Game Over! Press 'R' to Restart" message instead of just stopping.
Pressing 'R' resets the game state and brings the player back to the start screen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant