Skip to content

Commit

Permalink
Refine codes
Browse files Browse the repository at this point in the history
  • Loading branch information
daochenzha committed Nov 11, 2019
1 parent 632016c commit 2a1c893
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# RLCard: A Toolkit for Reinforcement Learning in Card Games
<img width="500" src="./docs/imgs/logo.jpg" alt="Logo" />


[![Build Status](https://travis-ci.org/datamllab/RLCard.svg?branch=master)](https://travis-ci.org/datamllab/RLCard)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/248eb15c086748a4bcc830755f1bd798)](https://www.codacy.com/manual/daochenzha/rlcard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=datamllab/rlcard&amp;utm_campaign=Badge_Grade)
[![Coverage Status](https://coveralls.io/repos/github/datamllab/rlcard/badge.svg)](https://coveralls.io/github/datamllab/rlcard?branch=master)
Expand Down Expand Up @@ -102,7 +101,7 @@ We provide a complexity estimation for the games on several aspects. **InfoSet N
| Dou Dizhu ([wiki](https://en.wikipedia.org/wiki/Dou_dizhu), [baike](https://baike.baidu.com/item/%E6%96%97%E5%9C%B0%E4%B8%BB/177997?fr=aladdin)) | 10^53 ~ 10^83 | 10^23 | 10^4 | doudizhu | Available |
| Mahjong ([wiki](https://en.wikipedia.org/wiki/Competition_Mahjong_scoring_rules), [baike](https://baike.baidu.com/item/%E9%BA%BB%E5%B0%86/215)) | 10^121 | 10^48 | 10^2 | mahjong | Available |
| No-limit Texas Hold'em ([wiki](https://en.wikipedia.org/wiki/Texas_hold_%27em), [baike](https://baike.baidu.com/item/%E5%BE%B7%E5%85%8B%E8%90%A8%E6%96%AF%E6%89%91%E5%85%8B/83440?fr=aladdin)) | 10^162 | 10^3 | 10^4 | no-limit-holdem | Available |
| UNO ([wiki](https://en.wikipedia.org/wiki/Uno_\(card_game\)), [baike](https://baike.baidu.com/item/UNO%E7%89%8C/2249587)) | 10^163 | 10^10 | 10^1 | uno | Available |
| UNO ([wiki](https://en.wikipedia.org/wiki/Uno_\(card_game\)), [baike](https://baike.baidu.com/item/UNO%E7%89%8C/2249587)) | 10^163 | 10^10 | 10^1 | uno | Available |
| Sheng Ji ([wiki](https://en.wikipedia.org/wiki/Sheng_ji), [baike](https://baike.baidu.com/item/%E5%8D%87%E7%BA%A7/3563150)) | 10^157 ~ 10^165 | 10^61 | 10^11 | - | Developing |

## Evaluation
Expand Down
Binary file added cfr_model/average_policy.pkl
Binary file not shown.
1 change: 1 addition & 0 deletions cfr_model/iteration.pkl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�Kd.
Binary file added cfr_model/policy.pkl
Binary file not shown.
Binary file added cfr_model/regrets.pkl
Binary file not shown.
2 changes: 1 addition & 1 deletion rlcard/agents/cfr_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class CFRAgent():

def __init__(self, env, model_path='./cfr_model'):
''' Initilize Agent
Args:
env (Env): Env class
'''
Expand Down
14 changes: 7 additions & 7 deletions rlcard/games/mahjong/card.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ def get_str(self):


# for test
if __name__ == '__main__':
a = MajongCard('dots', '5')
b = MajongCard('bamboo', '6')
c = MajongCard('winds', 'south')
cards = [a, b, c]
for card in cards:
print(card.get_str())
#if __name__ == '__main__':
# a = MajongCard('dots', '5')
# b = MajongCard('bamboo', '6')
# c = MajongCard('winds', 'south')
# cards = [a, b, c]
# for card in cards:
# print(card.get_str())

0 comments on commit 2a1c893

Please sign in to comment.