MahjongRepository / tenhou-python-bot

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

Quick fix for the bug caused by AI's overhead #28

Closed 0xsuu closed 7 years ago

0xsuu commented 7 years ago

27

Nihisil commented 7 years ago

Thank you @0xsuu for your contribution!

I'm not sure why you set Table object to the TenhouClient constructor.

And based on PEP-8 I prefer to use method_names_like_this, notLikeThis.

Also, I wasn't able to reproduce the bug even with sleep in the constructor.

But, based on your fix I did small commit, please, check is it working for you or not: https://github.com/MahjongRepository/tenhou-python-bot/commit/5b726b51d4a377f095bb8acb9ad04fd917e4ef85

Thanks!