Docker image
A Docker image of TAG is publicly available on Docker Hub as hopshackle/tabletop-games.
This cannot be used to run any GUI (due to Docker/Swing constraints), but can be used to run any of the other entry points (see build details).
TAG.jar will be run automatically, and any command line arguments used when the container is started will be passed to this.
Examples of usage:
docker run -v C:\TAG\experiments:/local -w /local hopshackle/tabletop-games RunGames config=RunGamesConfig.json
This will mount C:\TAG\experiments to the /local directory in the container, and set this to be the working directory. These two flags, -v and -w, are the key ones to use.
Assuming that the RunGamesConfig.json file looks like this:
{
"game" : "Dominion",
"nPlayers" : 3,
"mode" : "exhaustive",
"matchups" : 300,
"playerDirectory" : "TestAgents",
"listener" : "GameResultsListener.json",
"destDir" : "DominionTest"
}
The agents to play the game will be read in from C:\TAG\experiments\TestAgents, the output will be written to C:\TAG\experiments\DominionTest. There must also be a GameResultsListener.json file in C:\TAG\experiments.
See the build details page for the entry points, and the linked pages for the detailed command line arguments.