roomai.kuhn package¶
Submodules¶
roomai.kuhn.KuhnPokerEnv module¶
-
class
roomai.kuhn.KuhnPokerEnv.
KuhnPokerEnv
[source]¶ Bases:
roomai.common.common.AbstractEnv
The KuhnPoker game environment
-
classmethod
compete
(env, players)[source]¶ Use the game environment to hold a compete for the players
Parameters: - env – The game environment
- players – The players
Returns: scores for the players
-
classmethod
roomai.kuhn.KuhnPokerPlayer module¶
roomai.kuhn.KuhnPokerUtils module¶
-
class
roomai.kuhn.KuhnPokerUtils.
KuhnPokerAction
(key)[source]¶ Bases:
roomai.common.common.AbstractAction
The KuhnPoker action. There are only two actions: bet and check. Examples of usages:
>> import roomai.kuhn
>> action = roomai.kuhn.KuhnPokerAction.lookup(“bet”)
>> action.key
“bet”
>> action = roomai.kuhn.KuhnPokerAction.lookup(“check”)
>> action.key
“check”
-
key
¶ The key of the KuhnPoker action, “bet” or “check”.
-
-
class
roomai.kuhn.KuhnPokerUtils.
KuhnPokerPersonState
[source]¶ Bases:
roomai.common.common.AbstractPersonState
The person state of KuhnPoker
-
number
¶ The number given by the game enviroment. The value of this number is in {0,1,2}. The larger number, the higher win rate
-
-
class
roomai.kuhn.KuhnPokerUtils.
KuhnPokerPrivateState
[source]¶ Bases:
roomai.common.common.AbstractPrivateState
The private state class of KuhnPoker