The game must also stop in the event of a win. The player wins if the snake grows to a certain size. To store this size,
in the SnakeGame class, create a GOAL constant and initialize it to 28. To determine the snake's current size, create and implement
a getLength() method in the Snake class. By an
Snake (Part 16/20)
- 3
Locked
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Dominik Witteler
27 August 2020, 07:00
What i have to change in the onTurn()-method?
0