Skip to content

Commit

Permalink
Merge pull request google-deepmind#984 from rezunli96:crazy_eights
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 507779143
Change-Id: I0e4375ca80b41d0d31ff24bdd7a00735caf42870
  • Loading branch information
lanctot committed Feb 20, 2023
2 parents 7b0f153 + 161805e commit e0c3e9a
Show file tree
Hide file tree
Showing 7 changed files with 3,261 additions and 1 deletion.
15 changes: 14 additions & 1 deletion docs/games.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Status | Game
![](_static/green_circ10.png "green circle") | [Connect Four](#connect-four)
<font color="orange"><b>~</b></font> | [Cooperative Box-Pushing](#cooperative-box-pushing)
![](_static/green_circ10.png "green circle") | [Chess](#chess)
<font color="orange"><b>~</b></font> | [Crazy Eights](#crazy-eights)
<font color="orange"><b>~</b></font> | [Dark Hex](#dark-hex)
<font color="orange"><b>~</b></font> | [Deep Sea](#deep-sea)
<font color="orange"><b>~</b></font> | [Dou Dizhu](#dou-dizhu)
Expand Down Expand Up @@ -292,6 +293,18 @@ Status | Game
* 2 players.
* [Wikipedia](https://en.wikipedia.org/wiki/Chess)

### Crazy Eights

* A precursor of UNO (see [here](https://www.unorules.org/crazy-eights/)).
* Players try to match the rank or suit of the previous played card.
* Eights are viewed as wild cards.
* In an alternative version, special cards such as skip, reverse, draw-two are
permitted.
* Nondeterministic.
* Imperfect information.
* >=2 players.
* [Wikipedia](https://en.wikipedia.org/wiki/Crazy_Eights)

### Dark Hex

* Hex, except the opponent's tokens are hidden. (Imperfect-information
Expand Down Expand Up @@ -321,7 +334,7 @@ Status | Game
* Non-deterministic.
* Imperfect information.
* Three players.
* [Wikipeda](https://en.wikipedia.org/wiki/Dou_dizhu)
* [Wikipedia](https://en.wikipedia.org/wiki/Dou_dizhu)

### Euchre

Expand Down
6 changes: 6 additions & 0 deletions open_spiel/games/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ set(GAME_SOURCES
coop_box_pushing.h
coordinated_mp.cc
coordinated_mp.h
crazy_eights.cc
crazy_eights.h
cursor_go.cc
cursor_go.h
dark_chess.cc
Expand Down Expand Up @@ -352,6 +354,10 @@ add_executable(coordinated_mp_test coordinated_mp_test.cc ${OPEN_SPIEL_OBJECTS}
$<TARGET_OBJECTS:algorithms>)
add_test(coordinated_mp_test coordinated_mp_test)

add_executable(crazy_eights_test crazy_eights_test.cc ${OPEN_SPIEL_OBJECTS}
$<TARGET_OBJECTS:tests>)
add_test(crazy_eights_test crazy_eights_test)

add_executable(crowd_modelling_test mfg/crowd_modelling_test.cc ${OPEN_SPIEL_OBJECTS}
$<TARGET_OBJECTS:tests>)
add_test(crowd_modelling_test crowd_modelling_test)
Expand Down
Loading

0 comments on commit e0c3e9a

Please sign in to comment.