MahjongRepository / tenhou-python-bot

Bot for tenhou.net riichi mahjong server written in Python
MIT License
201 stars 52 forks source link

Bot should tsumogiri if he could #34

Closed 0xrgb closed 7 years ago

0xrgb commented 7 years ago

Lets assume bot has already 1s and draws 1s.

If bot wants to discard 1s, current version (0.2.7) discards 1s in its hand.
In my opinion, it should tsumogiri if it could, because it gives less information to other players.

p.s. It should check akadora, because it is different pai. (e.g. 5p vs 0p)

Nihisil commented 7 years ago

Actually right now bot will discard a tile with smallest code number.

So, for example we have a tile 3 (1 man) in the hand and bot draw a tile 1 (1 man again), in that case bot will do tsumogiri.

But I'm agree that better to do tsumogiri if possible, will add this feature in the plan.

Nihisil commented 7 years ago

It was fixed in v0.3.1