Skip to content

Commit

Permalink
version and texas holdem no limit version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
jkterry1 committed Aug 19, 2021
1 parent b3df5c2 commit a82e108
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/classic/texas_holdem.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ action-shape: "Discrete(103)"
action-values: "Discrete(103)"
observation-shape: "(54,)"
observation-values: "[0, 100]"
import: "from pettingzoo.classic import texas_holdem_no_limit_v4"
import: "from pettingzoo.classic import texas_holdem_v4"
agent-labels: "agents= ['player_0', 'player_1']"
---

Expand Down
5 changes: 3 additions & 2 deletions docs/classic/texas_holdem_no_limit.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ action-shape: "Discrete(4)"
action-values: "Discrete(4)"
observation-shape: "(72,)"
observation-values: "[0, 1]"
import: "from pettingzoo.classic import texas_holdem_no_limit_v4"
import: "from pettingzoo.classic import texas_holdem_no_limit_v5"
agent-labels: "agents= ['player_0', 'player_1']"
---

Expand All @@ -16,7 +16,7 @@ agent-labels: "agents= ['player_0', 'player_1']"
### Arguments

```
texas_holdem_no_limit_v4.env(num_players=2)
texas_holdem_no_limit_v5.env(num_players=2)
```

`num_players`: Sets the number of players in the game. Minimum is 2.
Expand Down Expand Up @@ -65,6 +65,7 @@ The legal moves available to the current agent are found in the `action_mask` el

### Version History

* v5: Upgrade to RLCard 1.0.4, fixes to rewards with greater than 2 players (1.11.1)
* v4: Upgrade to RLCard 1.0.3 (1.11.0)
* v3: Fixed bug in arbitrary calls to observe() (1.8.0)
* v2: Bumped RLCard version, bug fixes, legal action mask in observation replaced illegal move list in infos (1.5.0)
Expand Down
2 changes: 1 addition & 1 deletion pettingzoo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
os.environ['SDL_AUDIODRIVER'] = 'dsp'


__version__ = "1.11.0"
__version__ = "1.11.1"
2 changes: 1 addition & 1 deletion pettingzoo/classic/rlcard_envs/texas_holdem_no_limit.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def env(**kwargs):

class raw_env(RLCardBase):

metadata = {'render.modes': ['human', 'rgb_array'], "name": "texas_holdem_no_limit_v4"}
metadata = {'render.modes': ['human', 'rgb_array'], "name": "texas_holdem_no_limit_v5"}

def __init__(self, num_players=2):
super().__init__("no-limit-holdem", num_players, (54,))
Expand Down
4 changes: 2 additions & 2 deletions test/all_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from pettingzoo.classic import leduc_holdem_v4
from pettingzoo.classic import mahjong_v4
from pettingzoo.classic import texas_holdem_v4
from pettingzoo.classic import texas_holdem_no_limit_v4
from pettingzoo.classic import texas_holdem_no_limit_v5
from pettingzoo.classic import uno_v4
from pettingzoo.classic import dou_dizhu_v4
from pettingzoo.classic import gin_rummy_v4
Expand Down Expand Up @@ -111,7 +111,7 @@
"classic/leduc_holdem_v4": leduc_holdem_v4,
"classic/mahjong_v4": mahjong_v4,
"classic/texas_holdem_v4": texas_holdem_v4,
"classic/texas_holdem_no_limit_v4": texas_holdem_no_limit_v4,
"classic/texas_holdem_no_limit_v5": texas_holdem_no_limit_v5,
"classic/uno_v4": uno_v4,
"classic/dou_dizhu_v4": dou_dizhu_v4,
"classic/gin_rummy_v4": gin_rummy_v4,
Expand Down
6 changes: 3 additions & 3 deletions test/all_parameter_combs.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
(texas_holdem_v4.env, dict(num_players=3)),
(texas_holdem_v4.env, dict(num_players=4)),

(texas_holdem_no_limit_v4.env, dict(num_players=2)),
(texas_holdem_no_limit_v4.env, dict(num_players=3)),
(texas_holdem_no_limit_v4.env, dict(num_players=4)),
(texas_holdem_no_limit_v5.env, dict(num_players=2)),
(texas_holdem_no_limit_v5.env, dict(num_players=3)),
(texas_holdem_no_limit_v5.env, dict(num_players=4)),

(knights_archers_zombies_v7.env, dict(spawn_rate=50)),
(knights_archers_zombies_v7.env, dict(num_knights=4, num_archers=5)),
Expand Down

0 comments on commit a82e108

Please sign in to comment.