Now let's tackle the SnakeSection class. It will describe one piece of the snake. And what does each piece have? Right! Coordinates. Add two fields to the SnakeSection class: int x and int y. Add getters for these fields and a constructor with two int parameters.
Snake (part 6)
You must be signed in to leave a comment
This page doesn't have any comments yet