コード例 #1
0
        /// <inheritdoc/>
        public async Task <int> Start(IEnumerable <IPlayer> players, IGameOptions options = null)
        {
            if (options == null)
            {
                gameOptions = GameOptions.Default;
            }

            var pack = await gamePackLoader.Load();

            Pack = await ShuffleCards(pack);

            GameArea    = options.GameArea;
            GameSquares = await gameMapLoader.Load();

            return(CurrentGameId++);
        }