In this game, the player will receive an order and must go around the board and obtain those ingredients for a burger in a specific order.
The current inventory will not be displayed so players must remember the last ingredient that was obtained.
If the order list was correct, the user may go to the submit order space, where the user will get points if their order matches the order that was given.
If the order list is incorrect, the user may go to the trash space to get rid of all ingredients in their inventory.
Below are the goals and requirements that were given for this game.
A Text-based Game
In this game, the game will give you a requirement of ingredients and the order they must be picked up. There will not be a list that shows current ingredients
that have been gathered, so you must keep track of that yourself. If you mess up, there is a trash space to dispose of all the ingredients.
*Design a game with pointer-linked spaces
*Use object-oriented programming concepts
This is the final project and you will be able to design and implement a one-player, text-based game where the player can move through spaces to get items and accomplish goals.
You have the freedom to decide what kind of them you would like to create for your game as long the requirements below are met.
1. The game requires a Space class, which represents the space the player can be in. The Space class must be an abstract class that will have pure virtual functions.
Inside the Space class, there must be at least 4 Space pointers: top, right, left, and bottom.
Use the class to create a game with the structure of linked space. (You are free to add more Space pointers to the Space class, but must have at least 4 Space pointers)
Even if your structure is linear, such as a train, you still have at least 4 pointers in the Space class
Any unused pointers need to point to NULL.
2. The game must have at least 3 derived classes that are derived from the Space
Each representing a different type of space, and need to have a special action for the player to interact with. It can be opening the door to another space, or maybe attack the monster, or turn on the light switch, or sing a song to please the king.
3. The game must have at least 6 spaces.
1. The game must have a theme. It can be a crime-solving theme, a fantasy game. The game must also have a goal for the player, so the player can complete the goal to achieve victory.
2. The game must keep track of which space the player is in. It can be in a form of visualized space, by printing the map out and indicate where the player is, or printing text describing where the player is at and what adjacent space is around the player’s space.
3. You must create a container for the player, to carry “items”. The container must have a capacity limit. The game must contain some items for the player to obtain in the game and one or more of these items must be required as part of the solution to accomplish game’s goal, such as a key to open a locked door, etc.
4. The game must have a time limit, which limits the amount of time/steps/turn the user can take before losing the game. The following are some notable examples of the time limit:
1. Step limit that limits the number of times the user can switch spaces.
2. Health system which decreases the player’s health point from space to space, and maybe some painkillers scattered around the spaces.
Note: make sure you give enough steps to allow the game to perform testing.
Again, the user must be able to interact with parts of the space structure, not just collecting items to complete the game.
1. At the beginning of the game, the goal of the game must be declared and printed to let the player know the goal of the game.
2. The game cannot contain free-form input. An example of free-form input would be to type out “kitchen” to go to the kitchen space in the game. It is tedious and counter-intuitive.
3. The game must provide the user a menu option for each scenario of the game.
4. You are not required to have a printed map to visualize space, a text-based game is sufficient. But, it would be great to have a printed map, it is easier to interact with, and it’s cool to show a cool game with a map to friends and family.