Skip to content
This repository was archived by the owner on Jul 8, 2023. It is now read-only.

Commit 80000b9

Browse files
authored
Add new bot version statistic to the README.md
1 parent 10479a8 commit 80000b9

File tree

1 file changed

+29
-4
lines changed

1 file changed

+29
-4
lines changed

README.md

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ For now only **Python 3.5+** is supported.
44

55
# What do we have here?
66

7+
![Example of bot game](https://cloud.githubusercontent.com/assets/475367/25059936/31b33ac2-21c3-11e7-8cb2-de33d7ba96cb.gif)
8+
79
## Mahjong hands calculation
810

911
We have a code which can calculate hand cost (han, fu, yaku and scores) based on the hand's tiles.
@@ -22,7 +24,7 @@ So, we can say that our own hand calculator works the same way that tenhou.net h
2224

2325
The example of usage you can find here: https://github.com/MahjongRepository/tenhou-python-bot/blob/master/project/validate_hand.py#L194
2426

25-
## Simple mahjong bot
27+
## Mahjong bot
2628

2729
For research purposes we built a simple bot to play riichi mahjong on tenhou.net server.
2830

@@ -31,20 +33,43 @@ For research purposes we built a simple bot to play riichi mahjong on tenhou.net
3133
It can reach a tempai and call a riichi. It doesn't know about dora, yaku, defence and etc.
3234
Only about tempai and riichi so far.
3335

34-
This version had played 335 games (hanchans) and achieved only first dan on the tenhou.net so far
36+
This version had played 335 games (hanchans) and achieved only first dan (初段) on the tenhou.net so far
3537
(and lost it later, and achieved it again...).
3638

3739
Rate was somewhere around R1350.
3840

41+
Stat:
42+
3943
| | Result |
4044
| --- | --- |
4145
| Average position | 2.78 |
4246
| Win rate | 20.73% |
4347
| Feed rate | 19.40% |
44-
| Riichi rate| 36.17% |
48+
| Riichi rate | 36.17% |
49+
| Call rate | 0% |
4550

4651
So, even with the current simple logic it can play and win.
4752

53+
### 0.2.5 version
54+
55+
This version is much smarter than 0.0.x versions. It can open hand, go to defence and build hand effective (all supported features you can find in releases description).
56+
57+
This version had played 375 games (hanchans) and achieved second dan (二段).
58+
59+
Rate was somewhere around R1500.
60+
61+
Stat:
62+
63+
| | Result |
64+
| --- | --- |
65+
| Average position | 2.65 |
66+
| Win rate | 18.60% |
67+
| Feed rate | 10.59% |
68+
| Riichi rate | 15.64% |
69+
| Call rate | 34.89% |
70+
71+
For the next version I have a plan to improve win rate, probably bot should push with good hands more often.
72+
4873
# For developers
4974

5075
## How to run it?
@@ -67,4 +92,4 @@ This command will check the code style: `flake8 --config=../.flake8`
6792

6893
All PRs are welcomed anytime. Currently the project is in early stage and
6994
I'm working on the different parts of it in the same time, so before making any
70-
big changes it's better to check with me to avoid code duplication.
95+
big changes it's better to check with me to avoid code duplication.

0 commit comments

Comments
 (0)