aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-04-07 19:37:53 +0300
committerGravatar ks129 <[email protected]>2020-04-07 19:37:53 +0300
commit89e963b08a6348213d0585f17de4e18441426eb4 (patch)
treefb52cf3bf89d91cdba1c9e726e67052016f10c84
parent(TicTacToe): Added check is opponent free when request playing. (diff)
(TicTacToe): Added `symbol` to `Player` class.
-rw-r--r--bot/exts/evergreen/tic_tac_toe.py3
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: