diff options
author | 2020-04-09 19:11:24 +0300 | |
---|---|---|
committer | 2020-04-09 19:11:24 +0300 | |
commit | 235e8d9b9b3360e9ebc2a49c2ba0c4006fe5ae9f (patch) | |
tree | 62b9998be84aef9ef48fe0b7dd6368dbd848dbec | |
parent | (TicTacToe): Added winner check to `Game.play`. (diff) |
(TicTacToe): Removed unnecessary variable `channel` from `Game`.
-rw-r--r-- | bot/exts/evergreen/tic_tac_toe.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bot/exts/evergreen/tic_tac_toe.py b/bot/exts/evergreen/tic_tac_toe.py index ed612182..e8aafa07 100644 --- a/bot/exts/evergreen/tic_tac_toe.py +++ b/bot/exts/evergreen/tic_tac_toe.py @@ -46,8 +46,7 @@ class Player: class Game: """Class that contains information and functions about Tic Tac Toe game.""" - def __init__(self, channel: discord.TextChannel, players: t.List[Player], ctx: Context): - self.channel = channel + def __init__(self, players: t.List[Player], ctx: Context): self.players = players self.ctx = ctx self.board = { @@ -213,7 +212,6 @@ class TicTacToe(Cog): await ctx.send("Opponent is already in game.") return game = Game( - ctx.channel, [Player(ctx.author, ctx, Emojis.x), Player(opponent, ctx, Emojis.o)], ctx ) |