From b0540c8fef7017b97374533097df16bc7ecd0170 Mon Sep 17 00:00:00 2001 From: Francesco Bariatti <francesco.bariatti@insa-rennes.fr> Date: Mon, 2 May 2016 17:04:19 +0200 Subject: [PATCH] Added example game --- src/game/penguin.hpp | 22 +++++++++++----------- src/mcts/test_mcts_two_players.hpp | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/game/penguin.hpp b/src/game/penguin.hpp index a0e1ebf..c322c0a 100644 --- a/src/game/penguin.hpp +++ b/src/game/penguin.hpp @@ -13,19 +13,19 @@ namespace game { struct penguin_state { - uint64_t one_fish = 638390472297737852; //Position of one-fish tiles (bitboard) - uint64_t two_fish = 513912844679577984; //Position of two-fish tiles (bitboard) - uint64_t three_fish = 615868312588291; //Position of three-fish tiles (bitboard) + uint64_t one_fish = 533050011236269409; //Position of one-fish tiles (bitboard) + uint64_t two_fish = 40552008684274318; //Position of two-fish tiles (bitboard) + uint64_t three_fish = 579319484686303248; //Position of three-fish tiles (bitboard) //Penguins - uint32_t p1_red = 42; - uint32_t p2_red = 39; - uint32_t p3_red = 28; - uint32_t p4_red = 10; - uint32_t p1_blue = 19; - uint32_t p2_blue = 32; - uint32_t p3_blue = 43; - uint32_t p4_blue = 49; + uint32_t p1_red = 24; + uint32_t p2_red = 28; + uint32_t p3_red = 48; + uint32_t p4_red = 50; + uint32_t p1_blue = 10; + uint32_t p2_blue = 13; + uint32_t p3_blue = 35; + uint32_t p4_blue = 32; int score_red = 0; int score_blue = 0; diff --git a/src/mcts/test_mcts_two_players.hpp b/src/mcts/test_mcts_two_players.hpp index a6ffd89..11b345f 100644 --- a/src/mcts/test_mcts_two_players.hpp +++ b/src/mcts/test_mcts_two_players.hpp @@ -69,7 +69,7 @@ namespace mcts void test_mcts_two_players<Game>::play(Game g) { // 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 << "who's first? (h)uman/(c)omputer "; std::string ans; -- GitLab