#!/usr/bin/env sh

set -eu

HOST=127.0.0.1

curl -XPOST -H "Content-Type: application/json" -d"{\"botName\":\"greedy\", \"botCommunication\":{\"tag\":\"ExecutableBot\", \"contents\":\"$PWD/game-grid/greedy.py\"}}" http://$HOST:8081/add-bot

curl -XPOST -H "Content-Type: application/json" -d"{\"botName\":\"randy\", \"botCommunication\":{\"tag\":\"ExecutableBot\", \"contents\":\"$PWD/game-grid/randy.py\"}}" http://$HOST:8081/add-bot

curl -XPOST http://$HOST:8081/launch-round-robin-tournament/10x10

sleep 1
echo ''
echo ''

curl -H "Accept: application/json" http://$HOST:8081/state | python -mjson.tool
#!/usr/bin/env sh

set -eu

HOST=127.0.0.1

curl -XPOST -H "Content-Type: application/json" -d"{\"botName\":\"greedy\", \"botCommunication\":{\"tag\":\"ExecutableBot\", \"contents\":\"$PWD/game-grid/greedy.py\"}}" http://$HOST:8081/add-bot

curl -XPOST -H "Content-Type: application/json" -d"{\"botName\":\"randy\", \"botCommunication\":{\"tag\":\"ExecutableBot\", \"contents\":\"$PWD/game-grid/randy.py\"}}" http://$HOST:8081/add-bot

curl -XPOST -H "Content-Type: application/json" -d"{\"botName\":\"asdf\", \"botCommunication\":{\"tag\":\"ExecutableBot\", \"contents\":\"$PWD/test-grid/test-bots/asdf.erl\"}}" http://$HOST:8081/add-bot

curl -XPOST -H "Content-Type: application/json" -d"{\"botName\":\"waiver\", \"botCommunication\":{\"tag\":\"ExecutableBot\", \"contents\":\"$PWD/test-grid/test-bots/waiver.js\"}}" http://$HOST:8081/add-bot

curl -XPOST http://$HOST:8081/launch-round-robin-tournament/40x40

sleep 1
echo ''
echo ''

curl -H "Accept: application/json" http://$HOST:8081/state | python -mjson.tool
Add new example bots to default tournament script
Add new example bots to default tournament script
