In SnakeProDisplay.java -> updateGraphics():
We’re going to draw the walls and playing area for the Snake, this is called the Board. Your job is to draw an outline(walls) of the board in one color, and the inside of the board in another color.
We’re also going to draw all the parts of the snake on the board.
Make sure to look for methods that help you draw squares on the screen.
After you complete this step your board should look similar to this (you can use different colors if you want):
Snake head is BLACK
Snake body is GREEN
Walls are BLUE
Non-wall cells are WHITE
As you can see above, the board is places on the screen, but it looks like it has been drawn over the title. We’ll have to shift our drawing of the board a bit.
We could play around with shifting numbers, but instead use this.width and constants in the Preferences class (e.g., Preferences.CONSTANT_NAME) to compute a good offset that leaves the board horizontally centered.
You should visually check if the screen is being displayed correctly. There are no automated tests for this part, like other parts of this project.