diff options
author | 2020-04-07 19:37:53 +0300 | |
---|---|---|
committer | 2020-04-07 19:37:53 +0300 | |
commit | 89e963b08a6348213d0585f17de4e18441426eb4 (patch) | |
tree | fb52cf3bf89d91cdba1c9e726e67052016f10c84 /bot/exts/evergreen/tic_tac_toe.py | |
parent | (TicTacToe): Added check is opponent free when request playing. (diff) |
(TicTacToe): Added `symbol` to `Player` class.
Diffstat (limited to 'bot/exts/evergreen/tic_tac_toe.py')
-rw-r--r-- | bot/exts/evergreen/tic_tac_toe.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/exts/evergreen/tic_tac_toe.py b/bot/exts/evergreen/tic_tac_toe.py index 01417f25..bb8f8dac 100644 --- a/bot/exts/evergreen/tic_tac_toe.py +++ b/bot/exts/evergreen/tic_tac_toe.py @@ -16,9 +16,10 @@ CONFIRMATION_MESSAGE = ( class Player: """Class that contains information about player and functions that interact with player.""" - def __init__(self, user: discord.User, ctx: Context): + def __init__(self, user: discord.User, ctx: Context, symbol: str): self.user = user self.ctx = ctx + self.symbol = symbol class Game: |