Home

Assignment 4 - Snake Game

Technology: Java, Eclipse

Similar to the previous assignment, I implemented the logic that controls a snake
game. As shown in the screenshot, the snake's head is the teal square and the body
is the red squares. The snake follows your cursor and eats flashing squares to grow
in length. If the snake runs into itself it's game over.

Project Files

SnakeHead.java (click on image to download file):



SquareMap.java (click on image to download file):



Wall.java (click on image to download file):



Food.java (click on image to download file):



CellUtil.java (click on image to download file):