-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
47 lines (36 loc) · 1.01 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//Kanellaki Maria Anna - 1115201400060
//Matanis Panagiotis - 1115201400297
#include <iostream>
#include <time.h>
#include "GameBoard.hpp"
#include "initializeGameBoard.hpp"
#include "Gameplay.hpp"
using namespace std;
int main()
{
srand(time(0));
Personalities:
enum{ATTACKER, DEFENDER, SHOGUN, CHANCELLOR, CHAMPION};
Holdings:
enum{PLAIN, MINE, GOLD_MINE, CRYSTAL_MINE, FARMS, SOLO, STRONGHOLD};
Followers:
enum{FOOTSOLDIER, ARCHER, SIEGER, CAVALRY, NAVAL, BUSHIDO};
Items:
enum{KATANA, SPEAR, BOW, NINJATO, WAKIZASHI};
list<Player> players = initializeGameBoard();
Gameplay play(players);
Player * winner;
while (!(winner = play.checkWinningCondition()))
{
play.startingPhase();
play.equipPhase();
play.battlePhase();
play.economyPhase();
play.finalPhase();
}
cout << "Player " << winner->getStronghold()->getName() <<" won"<<endl;
delete winner;
players.clear();
cout << "Game over"<< endl;
return 0;
}