Skip to content

Commit

Permalink
Update main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
r3w0p committed May 30, 2024
1 parent 778ef4d commit 92da01d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/caravan/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ int main(int argc, char *argv[]) {
}

bool pvp = result[KEY_PVP].as<bool>();
bool bots = result[KEY_BVB].as<bool>();
bool bvb = result[KEY_BVB].as<bool>();
std::string bot = result[KEY_BOT].as<std::string>();
float delay = result[KEY_DELAY].as<float>();
uint8_t first = result[KEY_FIRST].as<uint8_t>();
uint8_t cards = result[KEY_CARDS].as<uint8_t>();
uint8_t samples = result[KEY_SAMPLES].as<uint8_t>();
bool imbalanced = result[KEY_IMBALANCED].as<bool>();

if (pvp && bots) {
if (pvp && bvb) {
printf("Game cannot be both Player vs Player and Bot vs Bot.\n");
exit(EXIT_FAILURE);
}
Expand Down Expand Up @@ -113,7 +113,7 @@ int main(int argc, char *argv[]) {
user_abc = new UserHuman(PLAYER_ABC);
user_def = new UserHuman(PLAYER_DEF);

} else if (bots) { // bot vs bot
} else if (bvb) { // bot vs bot
user_abc = BotFactory::get(bot, PLAYER_ABC);
user_def = BotFactory::get(bot, PLAYER_DEF);

Expand Down

0 comments on commit 92da01d

Please sign in to comment.