We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f6d0e2 commit 93cc791Copy full SHA for 93cc791
rlcard/models/gin_rummy_rule_models.py
@@ -7,6 +7,8 @@
7
'''
8
9
from typing import TYPE_CHECKING
10
+from collections import OrderedDict
11
+
12
if TYPE_CHECKING:
13
from rlcard.core import Card
14
@@ -69,7 +71,7 @@ def step(state):
69
71
state=state)
70
72
if best_discards:
73
actions = [DiscardAction(card=card).action_id for card in best_discards]
- if type(actions) == dict:
74
+ if type(actions) == OrderedDict:
75
actions = list(actions.keys())
76
return np.random.choice(actions)
77
0 commit comments