Example #1
0
        public GameInfo NewGame(string user)
        {
            Deck      currentDeck  = new Deck();
            GameTable currentTable = new GameTable();

            GameInfo currentGame = new GameInfo(currentDeck);

            currentGame.GameTable = currentTable.CreateGameTable(currentDeck, user);
            currentGame.Key       = _cache.CreateCache(new GameSession(currentGame, "01", user));
            currentGame.GameTable = currentGame.GameTable.UpdateTable();

            return(currentGame);
        }