aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-04-07 11:51:19 +0300
committerGravatar ks129 <[email protected]>2020-04-07 11:51:19 +0300
commit04fe88be9b105522aec5185ab771a73c9ea1a818 (patch)
tree9dc3a9d09699683e1747dd12c8c53416c5cb89ae
parent(TicTacToe): Replaced `discord.User` with `Player` in `Game` class signature. (diff)
(TicTacToe): Added new player-about variables to `Game` class.
-rw-r--r--bot/exts/evergreen/tic_tac_toe.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/bot/exts/evergreen/tic_tac_toe.py b/bot/exts/evergreen/tic_tac_toe.py
index 2e21b43a..0fa1902b 100644
--- a/bot/exts/evergreen/tic_tac_toe.py
+++ b/bot/exts/evergreen/tic_tac_toe.py
@@ -22,6 +22,12 @@ class Game:
self.players = players
self.ctx = ctx
+ self.current = self.players[0]
+ self.next = self.players[1]
+
+ self.winner: t.Optional[Player] = None
+ self.loser: t.Optional[Player] = None
+
class TicTacToe(Cog):
"""TicTacToe cog contains tic-tac-toe game commands."""