Skip to content

Commit adf1461

Browse files
committed
Merge pull request google-deepmind#1403 from gmweinberg:yacht
PiperOrigin-RevId: 855955235 Change-Id: I9f7a52d328385960dd6fc2c4ddc87917747ba151
2 parents 248da93 + 6eea685 commit adf1461

File tree

7 files changed

+1914
-0
lines changed

7 files changed

+1914
-0
lines changed

docs/games.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,4 @@ Status | Game
9696
🔶 | [Ultimate Tic-Tac-Toe](https://en.wikipedia.org/wiki/Ultimate_tic-tac-toe) | 2 | ✅ | ✅ | Players try and form a pattern in local boards and a meta-board.
9797
🔶 | Weighted Voting Games | 1+ | ✅ | ✅ | Classic coalitional game. Players each have a weight w_i, and there is a quota q. Denote p the binary vector representing a coalition over n players. The utility is 1 if p · w ≥ q, 0 otherwise. References: [Chalkiadakis, Elkind, & Wooldridge '12](https://link.springer.com/book/10.1007/978-3-031-01558-8).
9898
🟢 | [Y](https://en.wikipedia.org/wiki/Y_\(game\)) | 2 | ✅ | ✅ | Players place tokens to try and connect sides of a triangular board.
99+
🔶 | [Yacht](https://en.wikipedia.org/wiki/Yacht_(dice_game)) | 1–10 | ❌ | ✅ | Dice game where players score points in different categories. Rules follow Knizia, which is slightly different from the Wikipedia rules. Reference: Knizia 1999 *Dice Games Properly Explained*.

open_spiel/games/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ set(GAME_SOURCES
214214
ultimate_tic_tac_toe/ultimate_tic_tac_toe.cc
215215
y/y.cc
216216
y/y.h
217+
yacht/yacht.cc
218+
yacht/yacht.h
217219
)
218220

219221
if (${OPEN_SPIEL_BUILD_WITH_HANABI})
@@ -709,3 +711,7 @@ endif()
709711
add_executable(y_test y/y_test.cc ${OPEN_SPIEL_OBJECTS}
710712
$<TARGET_OBJECTS:tests>)
711713
add_test(y_test y_test)
714+
715+
add_executable(yacht_test yacht/yacht_test.cc ${OPEN_SPIEL_OBJECTS}
716+
$<TARGET_OBJECTS:tests>)
717+
add_test(yacht_test yacht_test)

0 commit comments

Comments
 (0)