コード例 #1
0
        static public async Task <Game> MakeGame(ServerWorker serverWorker, int idPlayer = -1, int idGame = -1)
        {
            idGame = (await serverWorker.TaskPlayGame(idPlayer: idPlayer, idGame: idGame)).IdGame;
            Game game = await serverWorker.TaskGetGame(idGame : idGame);

            game.Turns = await serverWorker.TaskGetGameTurns(idGame);

            return(game);
        }