Http service to access muzero's script
314
This program is created to use MuZero's game steps by another program. Mainly board games are supposed to be used.
Built image is located in Docker Hub.
docker run --rm -it -p 8000:8000 ssashir06/muzero-http-serviceYou can build it manually.
git clone https://github.com/ssashir06/muzero-http-service.gitcd muzero-http-servicegit submodule initgit submodule update --remotedocker-compose up --buildThis is the easiest way to use it for test.
This might be complicated a little.
/game/{game_name}
game_name as tictactoe/game/{game_name}/{seed}
game_name as tictactoeseed as 1000/game/{game_name}/{seed}/action for the 1st game step
game_name as tictactoeseed as 1000opponent as selfsteps in the Response body for the 2nd game step.[
{
"action": 3,
"root": null,
"next": 1
}
]
/game/{game_name}/{seed}/action for the 2nd game step
game_name as tictactoeseed as 1000opponent as selfsteps of the 1st game step to the Request body{
"steps": [
{
"action": 3,
"root": null,
"next": 1
}
]
}
This program uses tic-tac-toe's module in the models directory. Another game's model can be used by adding or changing these things by editing docker-compose.yml file.
MODEL_PATH_tictactoe=./models/_for_test/tictactoe/model.checkpoint in docker-compose.ymlMODEL_PATH_{game_name}.Content type
Image
Digest
Size
1.3 GB
Last updated
almost 6 years ago
docker pull ssashir06/muzero-http-service