How can I get the discarded tiles in a specific kyoku? #185
Unanswered
yingjia-cai
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm implementing a bot based on base.py, and I need to get the discarded tiles for each player in a specific kyoku (round). However, I found that discarded_tiles(player_id) seems to return all discarded tiles from the start of the game, instead of only those in the current kyoku.
In base.py, the react() method only sets self.__discard_events = [] when event["type"] == "start_game", but not when event["type"] == "start_kyoku". As a result, discarded_tiles(player_id) keeps accumulating discards across multiple kyoku, making it impossible to get the discard pile for the current round.
Is there an existing API method that provides the discard pile only for the current kyoku? If there isn’t, what would be the recommended way to track this?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions