Homework 5, Playing the game.
Short Description:
Modify the existing dandyland.cpp file to allow the player to play the game.
This assignment is worth 20 points.
Goals
When you finish this homework, you should have:
- Continued to improve Dandyland.
Formal Description
- [15 points] The current implementation of dandyland is just a shell. Implement a user
interface and the game logic that allows the user to play this game.
The building section will be addressed in a future assignment. For now use the following rules
- There can be up to three buildings per sector.
- The first building in a sector costs 30 gold and 30 wood.
- It takes 10 wood and produces 1 construction material per tern.
- The second building in a sector costs 20 gold and 50 construction materials.
- It takes 7 gold and produces 1 coin
- The third building in a sector costs 100 gold and 100 construction materials.
- It takes 50 coins and 50 construction and produces 1 victory point.
- These buildings are implemented in SectorT.
- [10 points] Add a logger to the game. Allow the user to set the logging level in the main menu. The logger should be a singleton class and implemented as discussed in class. Modify all output except required user interaction (menu, questions, ...) to use the logging system. You may use string streams if you wish.
- [5 points] Modify all classes to use ctor constructors or initialize class data members where appropriate.
Required Files
A single tar file containing the source code and makefile for this program.
Submission
Submit your tar file to the D2L homework folder Homework 5 by the due date.