From a7f799430273f27a7834053127c2834fb7d50f48 Mon Sep 17 00:00:00 2001 From: "neiljp (Neil Pilgrim)" Date: Sun, 10 Dec 2017 11:45:02 -0800 Subject: [PATCH] TicTacToe: Use game objects instead of calling TicTacToeGame with self. --- zulip_bots/zulip_bots/bots/tictactoe/tictactoe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zulip_bots/zulip_bots/bots/tictactoe/tictactoe.py b/zulip_bots/zulip_bots/bots/tictactoe/tictactoe.py index 66c47f3..526f0d4 100644 --- a/zulip_bots/zulip_bots/bots/tictactoe/tictactoe.py +++ b/zulip_bots/zulip_bots/bots/tictactoe/tictactoe.py @@ -287,8 +287,8 @@ class ticTacToeHandler(object): return_content += TicTacToeGame.positions elif command == 'help': return_content = TicTacToeGame.detailed_help_message - elif (user_game) and TicTacToeGame.check_validity(user_game, TicTacToeGame.sanitize_move(user_game, command)): - move, printed_boards = TicTacToeGame.tictactoe(user_game, user_board, command) + elif (user_game) and user_game.check_validity(user_game.sanitize_move(command)): + move, printed_boards = user_game.tictactoe(user_board, command) mid_text = "My turn:\n" if printed_boards['after_computer'] else "" return_content = "".join([printed_boards['after_player'], mid_text, printed_boards['after_computer'],