Esempio n. 1
0
        /// <summary>
        /// Initialize's a game
        /// </summary>
        public void InitializeGame()
        {
            CurrentGameHistory = new GameHistory();

            FirstUser  = Game.Players[0].Bot;
            SecondUser = Game.Players[1].Bot;

            First  = Platform.Chatbots.Where(x => x.User.Id == FirstUser.Id).ToList()[0];
            Second = Platform.Chatbots.Where(x => x.User.Id == SecondUser.Id).ToList()[0];

            // Initialize bots
            Second.InitializeUserBot(First.BotEngine);
            First.InitializeUserBot(Second.BotEngine);
            First.IsInGame  = true;
            Second.IsInGame = true;
            Platform.LogEvent("Game " + Game.Id.ToString() + " Initialized ", ConsoleColor.DarkCyan);
        }
Esempio n. 2
0
 public GameHistoryResponse(string code, GameHistory his)
     : base(code)
 {
     history = his;
 }