Snake (Part 16/20)

  • 3
  • Locked
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
You can't complete this task, because you're not signed in.
Comments (1)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Dominik Witteler
Level 24 , Braunschweig, Germany
27 August 2020, 07:00
What i have to change in the onTurn()-method?