Snake (Part 9/20)

  • 3
  • Locked
Moving the snake is very simple: in a cell next to the head, a new head is created, and the last element (tail) of the snake is removed. In the Snake class, implement a createNewHead() method that creates and returns a new GameObject. The new GameObject must be created next to the element that cur
You can't complete this task, because you're not signed in.
Comments (2)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Level 25 , thorville, Asgard
25 April 2020, 09:40
how do you implement the removeTail() method ...pls help
Level 22 , Iasi, Romania
14 June 2021, 19:57
you just need to add a line to remove the last object in the snakeParts list