-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTest.cpp
More file actions
executable file
·54 lines (53 loc) · 872 Bytes
/
Test.cpp
File metadata and controls
executable file
·54 lines (53 loc) · 872 Bytes
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
48
49
50
51
52
53
54
#include "Agent.h"
#include "Strategy.h"
#include "Group.h"
#include "Town.h"
#include "Bar.h"
int main()
{
int i,j;
/*Strategy * a;
for(i=0;i<1000;i++)
{
a= new Strategy(5);
a->getScore();
a->getBar(20);
a->updateScore(1);
delete a;
}
cout<<"strat"<<endl;
int c[]={1,0,1,1,0,1,0,1,1,0};
Agent * b;
for(i=0;i<1000;i++)
{
b= new Agent(10,0,0);
b->isGoingToBar(20);
b->tellWins(c,40);
b->isDead();
delete b;
}
cout<<"Agent"<<endl;
Group * d;
for(i=0;i<1000;i++)
{
d=new Group(4,5,0,0);
d->isGoingToBar(20);
d->getNumPeeps();
d->isEmpty();
delete d;
}
cout<<"Group"<<endl;*/
int g[]={1,2,3,4,5};
Town * t;
for(i=0;i<1000;i++)
{
t=new Town(5,100,g,true,3,50,50);
for(j=0;j<1000;j++)
{
//cout<<i<<" "<<j<<endl;
t->turn();
}
delete t;
}
cout<<"Town"<<endl;
}