diff options
| author | 2020-04-09 19:15:55 +0300 | |
|---|---|---|
| committer | 2020-04-09 19:15:55 +0300 | |
| commit | a2963c4b2cf3f81e845b5e223a1b4de6feac0fda (patch) | |
| tree | 233b87181edb6cf11aa0dfa8591f0760288de788 /bot/exts/evergreen/tic_tac_toe.py | |
| parent | (TicTacToe): Added check that don't allow you to play against yourself to `ti... (diff) | |
(TicTacToe): Added loser and winner attaching to `Game.play` winning handling.
Diffstat (limited to 'bot/exts/evergreen/tic_tac_toe.py')
| -rw-r--r-- | bot/exts/evergreen/tic_tac_toe.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/exts/evergreen/tic_tac_toe.py b/bot/exts/evergreen/tic_tac_toe.py index f1e0834b..27bdbda1 100644 --- a/bot/exts/evergreen/tic_tac_toe.py +++ b/bot/exts/evergreen/tic_tac_toe.py @@ -169,6 +169,8 @@ class Game: await self.edit_board(board) await board.clear_reaction(Emojis.number_emojis[pos]) if await self.check_for_win(): + self.winner = self.current + self.loser = self.next await self.ctx.send(f":tada: {self.current.user.mention} is won this game! :tada:") await board.clear_reactions() break |