From 92da01d9f00d6e37087119ed18d84289bf2c61ea Mon Sep 17 00:00:00 2001 From: r3w0p Date: Thu, 30 May 2024 13:31:22 +0100 Subject: [PATCH] Update main.cpp --- src/caravan/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/caravan/main.cpp b/src/caravan/main.cpp index 5b550ce..96a1985 100644 --- a/src/caravan/main.cpp +++ b/src/caravan/main.cpp @@ -76,7 +76,7 @@ int main(int argc, char *argv[]) { } bool pvp = result[KEY_PVP].as(); - bool bots = result[KEY_BVB].as(); + bool bvb = result[KEY_BVB].as(); std::string bot = result[KEY_BOT].as(); float delay = result[KEY_DELAY].as(); uint8_t first = result[KEY_FIRST].as(); @@ -84,7 +84,7 @@ int main(int argc, char *argv[]) { uint8_t samples = result[KEY_SAMPLES].as(); bool imbalanced = result[KEY_IMBALANCED].as(); - if (pvp && bots) { + if (pvp && bvb) { printf("Game cannot be both Player vs Player and Bot vs Bot.\n"); exit(EXIT_FAILURE); } @@ -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);