New answers tagged objective-c
Why not have the value for the array[x][y] increment down to zero each update (move) where when you move the head of the snake you place down a value of the length of the snake itself. Using this you could search the board for the value 1 for the snake tail and a defined value for the snake head (-1). Upon an expansion of the snakes length just decide not to ...
Top 50 recent answers are included