Permalink
Browse files

Send map seed to bot as part of constants blob

  • Loading branch information...
lihalite committed Sep 26, 2018
1 parent 728710a commit 5da16cd10f8a4362d09b8f150139fb20c7c31c7e
Showing with 2 additions and 0 deletions.
  1. +2 −0 game_engine/networking/common/Networking.cpp
@@ -2,6 +2,7 @@

#include "Command.hpp"
#include "Halite.hpp"
#include "Replay.hpp"
#include "Logging.hpp"
#include "BotError.hpp"

@@ -66,6 +67,7 @@ void Networking::initialize_player(Player &player) {
Logging::log("Sending init message", Logging::Level::Debug, player.id);
// Send the game constants
nlohmann::json constants = Constants::get();
constants["game_seed"] = game.replay.map_generator_seed;
message_stream << constants.dump() << std::endl;

// Send the number of players and player ID

0 comments on commit 5da16cd

Please sign in to comment.