1#ifndef CAVOKE_SERVER_GAME_LOGIC_MANAGER_H
2#define CAVOKE_SERVER_GAME_LOGIC_MANAGER_H
7#include "game_state_storage.h"
8#include "model/games/games_storage.h"
10namespace cavoke::server::model {
18 std::shared_ptr<GamesStorage> m_games_storage;
20 std::string invoke_logic_local(
const Game &game,
const std::string &input);
21 std::string invoke_logic_external(
const Game &game,
22 const std::string &method,
23 const std::string &input);
28 const int LOGIC_TIMEOUT_MS = 500;
29 const int MAX_GAME_RESPONSE_B = 8 * 1024;
32 const std::string &game_id,
34 const std::vector<int> &occupied_positions);
37 const std::string &game_id,
39 const std::vector<int> &occupied_positions);
42 const cavoke::GameMove &move);
Base exception for errors thrown in server.
is thrown when trying to start a new session with invalid config