Tanks

Upload a tank

Program
Sensors
Range Angle Width Turret?
Preview

Upload using curl

You can use curl to upload your tank, if you want.

The server does no syntax checking on what you upload. You'll have to wait until the next round to see if you made a mistake.

#! /bin/sh

curl -X PUT -d 'fred the tank' https://server/tanks/a1b2c3d4/name
curl -X PUT -d '#ff0000' https://server/tanks/a1b2c3d4/color
curl -X PUT -d '50 0 10 1' https://server/tanks/a1b2c3d4/sensor0
curl -X PUT -d '360 0 5 0' https://server/tanks/a1b2c3d4/sensor1
curl -X PUT -d '0 0 0 0' https://server/tanks/a1b2c3d4/sensor2
curl -X PUT -d '0 0 0 0' https://server/tanks/a1b2c3d4/sensor3
curl -X PUT -d '0 0 0 0' https://server/tanks/a1b2c3d4/sensor4
curl -X PUT -d '0 0 0 0' https://server/tanks/a1b2c3d4/sensor5
curl -X PUT -d '0 0 0 0' https://server/tanks/a1b2c3d4/sensor6
curl -X PUT -d '0 0 0 0' https://server/tanks/a1b2c3d4/sensor7
curl -X PUT -d '0 0 0 0' https://server/tanks/a1b2c3d4/sensor8
curl -X PUT -d '0 0 0 0' https://server/tanks/a1b2c3d4/sensor9
curl -X PUT --data-binary @- https://server/tanks/a1b2c3d4/program <<'EOD'
20 30 set-speed!
EOD