Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
#include <iostream>
#include <string>
#include <random>
#include <ctime>
// included for the random generator part of our code which will be explained more later
#include "Dark_Ages.h"
//we included a .h file with code for seperate parts more explained later
using namespace std;
//shortcut for when we want to do the 'print' statement equivalent onto the terminal
int main()
{
int Army=50;
int Popularity=50;
int Religion=50;
int Wealth=50;
cout<<"Welcome to The Dark Ages. You've been born as a King, name your King"<<endl;
string playername;
cin>> playername;
//the player chooses their name to be used later when they die perhaps or if new mehcanics or scenrios are added
//to the game which has to print the kings name.
cout<<"these are your beginning stats"<<endl;
cout<<"Army: "<<Army<<" Popularity: "<<Popularity<< " Religion: "<<Religion<<" Wealth: "<<Wealth<<endl;
//shows the beginning stats to the player after we allocated those bumbers above.
while(Army>0 && Army<100,Popularity>0 && Popularity<100,Religion>0 && Religion<100,Wealth >0 && Wealth<100)
{
random_s();
continue;
}
//while loop made to repeat as long as categories are within the 'livable' stats
//it will exit loop after saying game over etc, and then end the running code.
return 0;
//return 0 so the main function works correctly.
}