From 24371dd6983331a0390df68c8511f99a9e76dacf Mon Sep 17 00:00:00 2001 From: Marc Lanctot Date: Wed, 27 Oct 2021 09:04:08 -0600 Subject: [PATCH] Changes to garnet MFG games: - Add garnet and garnet_test to CMakeLists.txt - Add missing absl includes PiperOrigin-RevId: 405890884 Change-Id: If5303d9cb86338ebee2162697ba26d9ca00b3d34 --- open_spiel/games/CMakeLists.txt | 6 ++++++ open_spiel/games/mfg/garnet.cc | 2 ++ 2 files changed, 8 insertions(+) diff --git a/open_spiel/games/CMakeLists.txt b/open_spiel/games/CMakeLists.txt index 7e34233779..d01a8f22d3 100644 --- a/open_spiel/games/CMakeLists.txt +++ b/open_spiel/games/CMakeLists.txt @@ -88,6 +88,8 @@ set(GAME_SOURCES mfg/crowd_modelling.h mfg/crowd_modelling_2d.cc mfg/crowd_modelling_2d.h + mfg/garnet.cc + mfg/garnet.h negotiation.cc negotiation.h nfg_game.cc @@ -319,6 +321,10 @@ add_executable(first_sealed_auction_test first_sealed_auction_test.cc $) add_test(first_sealed_auction_test first_sealed_auction_test) +add_executable(garnet_test mfg/garnet_test.cc ${OPEN_SPIEL_OBJECTS} + $) +add_test(garnet_test garnet_test) + add_executable(gin_rummy_test gin_rummy_test.cc ${OPEN_SPIEL_OBJECTS} $) add_test(gin_rummy_test gin_rummy_test) diff --git a/open_spiel/games/mfg/garnet.cc b/open_spiel/games/mfg/garnet.cc index 1393cf1955..f50947f492 100644 --- a/open_spiel/games/mfg/garnet.cc +++ b/open_spiel/games/mfg/garnet.cc @@ -20,6 +20,8 @@ #include #include +#include "open_spiel/abseil-cpp/absl/random/random.h" +#include "open_spiel/abseil-cpp/absl/random/distributions.h" #include "open_spiel/abseil-cpp/absl/strings/numbers.h" #include "open_spiel/abseil-cpp/absl/strings/str_cat.h" #include "open_spiel/abseil-cpp/absl/strings/str_join.h"