aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cc
blob: 7a5f2bc224003f3fac222ddfca73fdde5cc796e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <iostream>

#include "NameGame.h"

int main(int argc, char* argv[]) {
	int group_size = 100;
	tp::NameGame namegame(group_size, 0);
	int cmperc_start = 18;
	for (int cmperc = cmperc_start; cmperc < 28; cmperc += 2) {
		int cmsize = group_size * cmperc / 100;
		namegame.clearRecord();
		namegame.setCMsize(cmsize);
		namegame.initMemory();
		std::cout << "CM " << cmsize << " / " << group_size << std::endl;
		namegame.run(1000);
		namegame.writeRecord("strategy_record.csv", cmperc != cmperc_start);
	}
	return 0;
}