Skip to content

Commit d899363

Browse files
committed
Merge pull request google-deepmind#1477 from gmweinberg:gomoku
PiperOrigin-RevId: 872853531 Change-Id: I8158de84c7fd6c7bbd50c6e8fe715624c2a705f3
2 parents ae6ed3a + e9cfec2 commit d899363

File tree

13 files changed

+2461
-0
lines changed

13 files changed

+2461
-0
lines changed

docs/games.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Status | Game
4242
🟢 | [First-price Sealed-Bid Auction](https://en.wikipedia.org/wiki/First-price_sealed-bid_auction) | 2-10 | ❌ | ❌ | Agents submit bids simultaneously; highest bid wins, and that's the price paid.
4343
🟢 | [Gin Rummy](https://en.wikipedia.org/wiki/Gin_rummy) | 2 | ❌ | ❌ | Players score points by forming specific sets with the cards in their hands.
4444
🟢 | [Go](https://en.wikipedia.org/wiki/Go_\(game\)) | 2 | ✅ | ✅ | Players place tokens on the board with the goal of encircling territory.
45+
🔶 | [Gomoku](https://en.wikipedia.org/wiki/Gomoku) | 2 | ✅ | ✅ | Try to get 5 stones in a row.
4546
🟢 | [Goofspiel](https://en.wikipedia.org/wiki/Goofspiel) | 2-10 | ❌ | ❌ | Players bid with their cards to win other cards.
4647
🟢 | [Hanabi](https://en.wikipedia.org/wiki/Hanabi_\(card_game\)) | 2-5 | ❌ | ❌ | Players can see only other player's pieces, and everyone must cooperate to win. References: [Bard et al. '19, The Hanabi Challenge: A New Frontier for AI Research](https://arxiv.org/abs/1902.00506). Implemented via [Hanabi Learning Environment](https://github.com/deepmind/hanabi-learning-environment).
4748
🟢 | [Havannah](https://en.wikipedia.org/wiki/Havannah_\(board_game\)) | 2 | ✅ | ✅ | Players add tokens to a hex grid to try and form a winning structure.

open_spiel/games/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ set(GAME_SOURCES
9696
go/go.h
9797
go/go_board.cc
9898
go/go_board.h
99+
gomoku/gomoku.cc
100+
gomoku/gomoku.h
101+
gomoku/gomoku_grid.h
99102
goofspiel/goofspiel.cc
100103
goofspiel/goofspiel.h
101104
havannah/havannah.cc
@@ -496,6 +499,10 @@ add_executable(phantom_go_test phantom_go/phantom_go_test.cc ${OPEN_SPIEL_OBJECT
496499
$<TARGET_OBJECTS:tests>)
497500
add_test(phantom_go_test phantom_go_test)
498501

502+
add_executable(gomoku_test gomoku/gomoku_test.cc ${OPEN_SPIEL_OBJECTS}
503+
$<TARGET_OBJECTS:tests>)
504+
add_test(gomoku_test gomoku_test)
505+
499506
add_executable(goofspiel_test goofspiel/goofspiel_test.cc ${OPEN_SPIEL_OBJECTS}
500507
$<TARGET_OBJECTS:tests>)
501508
add_test(goofspiel_test goofspiel_test)

0 commit comments

Comments
 (0)