Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when fighting with RLCard in landlord_up position #24

Closed
orange90 opened this issue Jul 6, 2021 · 1 comment
Closed

Error when fighting with RLCard in landlord_up position #24

orange90 opened this issue Jul 6, 2021 · 1 comment

Comments

@orange90
Copy link

orange90 commented Jul 6, 2021

I run it with
python3 evaluate.py --landlord rlcard --landlord_up baselines/douzero_ADP/landlord_up.ckpt --landlord_down baselines/douzero_ADP/landlord_down.ckpt
and I get this error:
Traceback (most recent call last):
File "/DouZero-main/douzero/evaluation/rlcard_agent.py", line 62, in act
the_type = CARD_TYPE[0][last_move][0][0]
KeyError: '666777BR'

@daochenzha
Copy link
Collaborator

@orange90 This is because of a minor difference between DouZero environment and RLCard environment. Specifically, DouZero allows XXXYYYBR, that is, both black and red jokers appear. But RLCard does not treat it as legal action. Whether or not this is legal is controversial in itself. Fortunately, this is a very very rare case. So I have just updated the code to skip this error, which will not affect the result much. Please try again.

@karoka karoka closed this as completed Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants