diff --git a/project/tenhou/client.py b/project/tenhou/client.py index 81188112..9f89ed40 100644 --- a/project/tenhou/client.py +++ b/project/tenhou/client.py @@ -320,13 +320,15 @@ def start_game(self): # we had to do discard after this if meld.who == 0: if meld.type != Meld.KAN and meld.type != Meld.CHANKAN: - logger.info('With hand: {}'.format(main_player.format_hand_for_print(meld_tile))) + player_formatted_hand = main_player.format_hand_for_print(meld_tile) + discarded_tile = self.player.discard_tile(discard_option) + + logger.info('With hand: {}'.format(player_formatted_hand)) logger.info('Discard tile after called meld: {}'.format( - TilesConverter.to_one_line_string([discard_option.tile_to_discard]))) + TilesConverter.to_one_line_string([discarded_tile])) + ) self.player.tiles.append(meld_tile) - discarded_tile = self.player.discard_tile(discard_option) - self._send_message(''.format(discarded_tile)) win_suggestions = ['t="8"', 't="9"', 't="12"', 't="13"']