Skip to content
Snippets Groups Projects
Commit b0540c8f authored by Bariatti Francesco's avatar Bariatti Francesco
Browse files

Added example game

parent ed163020
No related branches found
No related tags found
No related merge requests found
...@@ -13,19 +13,19 @@ namespace game ...@@ -13,19 +13,19 @@ namespace game
{ {
struct penguin_state struct penguin_state
{ {
uint64_t one_fish = 638390472297737852; //Position of one-fish tiles (bitboard) uint64_t one_fish = 533050011236269409; //Position of one-fish tiles (bitboard)
uint64_t two_fish = 513912844679577984; //Position of two-fish tiles (bitboard) uint64_t two_fish = 40552008684274318; //Position of two-fish tiles (bitboard)
uint64_t three_fish = 615868312588291; //Position of three-fish tiles (bitboard) uint64_t three_fish = 579319484686303248; //Position of three-fish tiles (bitboard)
//Penguins //Penguins
uint32_t p1_red = 42; uint32_t p1_red = 24;
uint32_t p2_red = 39; uint32_t p2_red = 28;
uint32_t p3_red = 28; uint32_t p3_red = 48;
uint32_t p4_red = 10; uint32_t p4_red = 50;
uint32_t p1_blue = 19; uint32_t p1_blue = 10;
uint32_t p2_blue = 32; uint32_t p2_blue = 13;
uint32_t p3_blue = 43; uint32_t p3_blue = 35;
uint32_t p4_blue = 49; uint32_t p4_blue = 32;
int score_red = 0; int score_red = 0;
int score_blue = 0; int score_blue = 0;
......
...@@ -69,7 +69,7 @@ namespace mcts ...@@ -69,7 +69,7 @@ namespace mcts
void test_mcts_two_players<Game>::play(Game g) void test_mcts_two_players<Game>::play(Game g)
{ {
// ProfilerStart("theturk.prof"); // ProfilerStart("theturk.prof");
auto the_turk = make_mcts_two_players(g, 2000, 0.4, 8); auto the_turk = make_mcts_two_players(g, 5000, 0.4, 8);
std::cout << "play one game" << std::endl; std::cout << "play one game" << std::endl;
std::cout << "who's first? (h)uman/(c)omputer "; std::cout << "who's first? (h)uman/(c)omputer ";
std::string ans; std::string ans;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment