Exemplo n.º 1
0
        public async Task JoinConnect4(string color)
        {
            if (!ActiveGames.ContainsKey(Context.Channel) && ActiveGames[Context.Channel].GetType() != typeof(Connect4))
            {
                await ReplyAsync($"You must first start a game of Connect4!");

                return;
            }

            Connect4 currentGame = ActiveGames[Context.Channel] as Connect4;
            await currentGame.JoinTheGame(Context.User, color);
        }
Exemplo n.º 2
0
 public async Task Drop(int col)
 {
     Connect4 currentGame = ActiveGames[Context.Channel] as Connect4;
     await currentGame.Drop(Context.User, col);
 }