Skip to content

Commit

Permalink
Changes to garnet MFG games:
Browse files Browse the repository at this point in the history
- Add garnet and garnet_test to CMakeLists.txt
- Add missing absl includes

PiperOrigin-RevId: 405890884
Change-Id: If5303d9cb86338ebee2162697ba26d9ca00b3d34
  • Loading branch information
lanctot committed Oct 27, 2021
1 parent ca1edc5 commit 24371dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions open_spiel/games/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -319,6 +321,10 @@ add_executable(first_sealed_auction_test first_sealed_auction_test.cc
$<TARGET_OBJECTS:tests>)
add_test(first_sealed_auction_test first_sealed_auction_test)

add_executable(garnet_test mfg/garnet_test.cc ${OPEN_SPIEL_OBJECTS}
$<TARGET_OBJECTS:tests>)
add_test(garnet_test garnet_test)

add_executable(gin_rummy_test gin_rummy_test.cc ${OPEN_SPIEL_OBJECTS}
$<TARGET_OBJECTS:tests>)
add_test(gin_rummy_test gin_rummy_test)
Expand Down
2 changes: 2 additions & 0 deletions open_spiel/games/mfg/garnet.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#include <utility>
#include <vector>

#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"
Expand Down

0 comments on commit 24371dd

Please sign in to comment.