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)
You must be signed in to leave a comment
27 August 2020, 07:00
What i have to change in the onTurn()-method?