Sale!

“Hungry Squirrel”……solved

$25.00 $21.25

Categories: ,

Description

5/5 - (6 votes)

For the final exam project, you will write a game application called “Hungry Squirrel”. In this game, there is a Squirrel in a maze looking for nuts. You will guide the squirrel to find and collect the nuts. There are two types of nuts available in the maze, Almonds and Peanuts. As the squirrel eats the nuts, it gains nutritional points. Once the squirrel finds all the nuts in the maze, the game is over. To implement this game, you will define 8 classes: Maze class, Entity class, Squirrel class, Wall class, Nut class, Almond class, Peanut class, and HungrySquirrelGame class. Each class is described in details in the following sections.

The following class diagram shows the class hierarchy between the classes:

Entity
Nut
Squirrel
Peanut
Almond
Movable

Wall