From 2dcd0fb8298fb2c97775f99a679fca2f1a5ef9ef Mon Sep 17 00:00:00 2001 From: Jerry Date: Tue, 15 Jan 2019 16:13:32 +0800 Subject: [PATCH] fix bug --- tgmsbot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tgmsbot.py b/tgmsbot.py index a9ff044..bff7562 100644 --- a/tgmsbot.py +++ b/tgmsbot.py @@ -354,7 +354,8 @@ def handle_button_click(bot, update): # if this is the first move, there's no mmap if mmap is not None: game.save_action(user, (row, col)) - update_keyboard_request(bot, bhash, game, chat_id, msg.message_id) + if not array_equal(board.map, mmap): + update_keyboard_request(bot, bhash, game, chat_id, msg.message_id) (s_op, s_is, s_3bv) = board.gen_statistics() ops_count = game.actions_sum() ops_list = game.get_actions()