|
|
|
@@ -120,7 +120,7 @@ TEST_F(ShardokMCTSAITest, SearchDoesNotCrash) {
|
|
|
|
|
endGameCondition.mutate_victory_details(
|
|
|
|
|
net::eagle0::shardok::storage::fb::VictoryCondition_UNKNOWN_VICTORY_CONDITION);
|
|
|
|
|
|
|
|
|
|
std::vector<PlayerId> winningIdsVec{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
|
|
|
|
|
auto winningIdsVec = std::vector<PlayerId>{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
|
|
|
|
|
auto winningIdsOff = fbb.CreateVector(winningIdsVec);
|
|
|
|
|
auto statusB = net::eagle0::shardok::storage::fb::GameStatusBuilder(fbb);
|
|
|
|
|
statusB.add_state(net::eagle0::shardok::storage::fb::GameStatus_::State_GAME_RUNNING);
|
|
|
|
@@ -188,7 +188,7 @@ TEST_F(ShardokMCTSAITest, PrefersArcheryOverEndTurn) {
|
|
|
|
|
endGameCondition.mutate_victory_details(
|
|
|
|
|
net::eagle0::shardok::storage::fb::VictoryCondition_UNKNOWN_VICTORY_CONDITION);
|
|
|
|
|
|
|
|
|
|
std::vector<PlayerId> winningIdsVec{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
|
|
|
|
|
auto winningIdsVec = std::vector<PlayerId>{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
|
|
|
|
|
auto winningIdsOff = fbb.CreateVector(winningIdsVec);
|
|
|
|
|
auto statusB = net::eagle0::shardok::storage::fb::GameStatusBuilder(fbb);
|
|
|
|
|
statusB.add_state(net::eagle0::shardok::storage::fb::GameStatus_::State_GAME_RUNNING);
|
|
|
|
@@ -344,7 +344,7 @@ TEST_F(ShardokMCTSAITest, PrefersArcheryOverEndTurnWithZeroFlips) {
|
|
|
|
|
endGameCondition.mutate_victory_details(
|
|
|
|
|
net::eagle0::shardok::storage::fb::VictoryCondition_UNKNOWN_VICTORY_CONDITION);
|
|
|
|
|
|
|
|
|
|
std::vector<PlayerId> winningIdsVec{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
|
|
|
|
|
auto winningIdsVec = std::vector<PlayerId>{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
|
|
|
|
|
auto winningIdsOff = fbb.CreateVector(winningIdsVec);
|
|
|
|
|
auto statusB = net::eagle0::shardok::storage::fb::GameStatusBuilder(fbb);
|
|
|
|
|
statusB.add_state(net::eagle0::shardok::storage::fb::GameStatus_::State_GAME_RUNNING);
|
|
|
|
@@ -453,7 +453,7 @@ TEST_F(ShardokMCTSAITest, ArcheryThenEndTurnScoresBetterThanEndTurnAlone) {
|
|
|
|
|
endGameCondition.mutate_victory_details(
|
|
|
|
|
net::eagle0::shardok::storage::fb::VictoryCondition_UNKNOWN_VICTORY_CONDITION);
|
|
|
|
|
|
|
|
|
|
std::vector<PlayerId> winningIdsVec{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
|
|
|
|
|
auto winningIdsVec = std::vector<PlayerId>{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
|
|
|
|
|
auto winningIdsOff = fbb.CreateVector(winningIdsVec);
|
|
|
|
|
auto statusB = net::eagle0::shardok::storage::fb::GameStatusBuilder(fbb);
|
|
|
|
|
statusB.add_state(net::eagle0::shardok::storage::fb::GameStatus_::State_GAME_RUNNING);
|
|
|
|
@@ -638,7 +638,7 @@ TEST_F(ShardokMCTSAITest, MinimaxOpponentDamageLowersLookahead) {
|
|
|
|
|
endGameCondition.mutate_victory_details(
|
|
|
|
|
net::eagle0::shardok::storage::fb::VictoryCondition_UNKNOWN_VICTORY_CONDITION);
|
|
|
|
|
|
|
|
|
|
std::vector<PlayerId> winningIdsVec{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
|
|
|
|
|
auto winningIdsVec = std::vector<PlayerId>{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
|
|
|
|
|
auto winningIdsOff = fbb.CreateVector(winningIdsVec);
|
|
|
|
|
auto statusB = net::eagle0::shardok::storage::fb::GameStatusBuilder(fbb);
|
|
|
|
|
statusB.add_state(net::eagle0::shardok::storage::fb::GameStatus_::State_GAME_RUNNING);
|
|
|
|
@@ -842,7 +842,7 @@ TEST_F(ShardokMCTSAITest, DoesNotPreferStartFireWhenNotBeneficial) {
|
|
|
|
|
endGameCondition.mutate_victory_details(
|
|
|
|
|
net::eagle0::shardok::storage::fb::VictoryCondition_UNKNOWN_VICTORY_CONDITION);
|
|
|
|
|
|
|
|
|
|
std::vector<PlayerId> winningIdsVec{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
|
|
|
|
|
auto winningIdsVec = std::vector<PlayerId>{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
|
|
|
|
|
auto winningIdsOff = fbb.CreateVector(winningIdsVec);
|
|
|
|
|
auto statusB = net::eagle0::shardok::storage::fb::GameStatusBuilder(fbb);
|
|
|
|
|
statusB.add_state(net::eagle0::shardok::storage::fb::GameStatus_::State_GAME_RUNNING);
|
|
|
|
@@ -1041,7 +1041,7 @@ TEST_F(ShardokMCTSAITest, LowProbabilityStartFireWithRain) {
|
|
|
|
|
endGameCondition.mutate_victory_details(
|
|
|
|
|
net::eagle0::shardok::storage::fb::VictoryCondition_UNKNOWN_VICTORY_CONDITION);
|
|
|
|
|
|
|
|
|
|
std::vector<PlayerId> winningIdsVec{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
|
|
|
|
|
auto winningIdsVec = std::vector<PlayerId>{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
|
|
|
|
|
auto winningIdsOff = fbb.CreateVector(winningIdsVec);
|
|
|
|
|
auto statusB = net::eagle0::shardok::storage::fb::GameStatusBuilder(fbb);
|
|
|
|
|
statusB.add_state(net::eagle0::shardok::storage::fb::GameStatus_::State_GAME_RUNNING);
|
|
|
|
@@ -1190,7 +1190,7 @@ TEST_F(ShardokMCTSAITest, DemonstrateStartFireCostBenefitImbalance) {
|
|
|
|
|
endGameCondition.mutate_victory_details(
|
|
|
|
|
net::eagle0::shardok::storage::fb::VictoryCondition_UNKNOWN_VICTORY_CONDITION);
|
|
|
|
|
|
|
|
|
|
std::vector<PlayerId> winningIdsVec{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
|
|
|
|
|
auto winningIdsVec = std::vector<PlayerId>{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
|
|
|
|
|
auto winningIdsOff = fbb.CreateVector(winningIdsVec);
|
|
|
|
|
auto statusB = net::eagle0::shardok::storage::fb::GameStatusBuilder(fbb);
|
|
|
|
|
statusB.add_state(net::eagle0::shardok::storage::fb::GameStatus_::State_GAME_RUNNING);
|
|
|
|
@@ -1385,7 +1385,7 @@ TEST_F(ShardokMCTSAITest, InvestigateStartFireVsEndTurnScoring) {
|
|
|
|
|
endGameCondition.mutate_victory_details(
|
|
|
|
|
net::eagle0::shardok::storage::fb::VictoryCondition_UNKNOWN_VICTORY_CONDITION);
|
|
|
|
|
|
|
|
|
|
std::vector<PlayerId> winningIdsVec{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
|
|
|
|
|
auto winningIdsVec = std::vector<PlayerId>{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
|
|
|
|
|
auto winningIdsOff = fbb.CreateVector(winningIdsVec);
|
|
|
|
|
auto statusB = net::eagle0::shardok::storage::fb::GameStatusBuilder(fbb);
|
|
|
|
|
statusB.add_state(net::eagle0::shardok::storage::fb::GameStatus_::State_GAME_RUNNING);
|
|
|
|
|