-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5461a50
commit faaa0f1
Showing
7 changed files
with
36 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
"""Random player""" | ||
|
||
from gym_env.env import Action | ||
from gym_env.enums import Action | ||
|
||
|
||
class Player: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
"""manual keypress agent""" | ||
|
||
from gym_env.env import Action | ||
from gym_env.enums import Action | ||
|
||
|
||
class Player: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
"""Random player""" | ||
import random | ||
|
||
from gym_env.env import Action | ||
from gym_env.enums import Action | ||
|
||
|
||
class Player: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
"""Enums""" | ||
from enum import Enum | ||
|
||
|
||
class Action(Enum): | ||
"""Allowed actions""" | ||
|
||
FOLD = 0 | ||
CHECK = 1 | ||
CALL = 2 | ||
RAISE_3BB = 3 | ||
RAISE_HALF_POT = 3 | ||
RAISE_POT = 4 | ||
RAISE_2POT = 5 | ||
ALL_IN = 6 | ||
SMALL_BLIND = 7 | ||
BIG_BLIND = 8 | ||
|
||
|
||
class Stage(Enum): | ||
"""Allowed actions""" | ||
|
||
PREFLOP = 0 | ||
FLOP = 1 | ||
TURN = 2 | ||
RIVER = 3 | ||
END_HIDDEN = 4 | ||
SHOWDOWN = 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters