Exemplo n.º 1
0
        public static async Task <ReplyInt> SpectateGame(int gameID)
        {
            string newUrl = url + "SpectateGame?username="******"&gameID=" + gameID;
            ReplyInt ans = await GetIntReply(newUrl);

            return(ans);
        }
Exemplo n.º 2
0
        public static async Task <ReplyInt> JoinGame(int gameID)
        {
            string newUrl = url + "JoinGame?username="******"&gameID=" + gameID;
            ReplyInt ans = await PostInt(newUrl);

            return(ans);
        }
Exemplo n.º 3
0
        // GameCenter
        public static async Task <ReplyInt> CreateGame(List <KeyValuePair <string, int> > preferenceList)
        {
            string newUrl = url + "CreateGame?username="******"&gameType=" + temp[0].Value;
            newUrl = newUrl + "&minPlayers=" + temp[1].Value;
            newUrl = newUrl + "&maxPlayers=" + temp[2].Value;
            newUrl = newUrl + "&minBet=" + temp[3].Value;
            newUrl = newUrl + "&chipPolicy=" + temp[4].Value;
            newUrl = newUrl + "&spectateGame=" + temp[5].Value;
            newUrl = newUrl + "&buyIn=" + temp[6].Value;
            ReplyInt ans = await PostInt(newUrl);

            return(ans);
        }