C++ Programming kujeni inbox +254722669803
You will be creating a knock off version of the game Oregon trail. You will give the player a base amount of money. The player is then given the option to buy supplies. Your game will run for at least 5 rounds. Each round, the player will use up certain supplies. Lack of these supplies could cause problems with players life; for example, no food means low health or starvation.
Each round will also present a random circumstance that may occur. Player will be given options on what to do during the round. The outcome for each choice will be randomized to be successful or fail. Rewards for success and consequences for failure will depend on choices made.
This will be a complete program with Title screen, game menu, and clean formatting of text. You will also include a test driver for developer testing and debugging. – There is a photo attach below of how the project should be done.
Global Functions
Build a global function that will be used with your program. I recommend building a function that returns a random number.
Now you should build a test function, one that will run the global function you created so you can make sure it works. For example, if your function test the random number function it should look something like this:
void testRandomRoll()
{
clearScreen();
std::cout << "Your Random number is " << RandomRoll() << std::endl; pauseScreen(); }
