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

#include "NameGame.h"

constexpr int group_size = 1000, cmsize = 292, memlen = 12;
constexpr int T = 1000;
constexpr const char* outfile = "strategy_record.csv";

int main(int argc, char* argv[]) {
	tp::NameGame namegame(group_size, cmsize);
	std::cout << "CM " << cmsize << " / " << group_size << std::endl;
	int a = namegame.run(group_size * T);
	std::cout << "New strategy adoption in the last N runs: " << a << std::endl;
	namegame.writeRecord(outfile);
	return 0;
}