Framework for running Python battleships AIs
- Ensure you have python2, pip, and virtualenv installed.
- Update config to match the live server address.
nano config
- Run the setup script.
./setup
- Run a local server.
./run-server
- Open your server's webpage.
open http://localhost:8080
- Make a copy of the demo code
cp demo.py myentry.py
- Update the TEAM_NAME variable in your entry. It should be something unique.
- Modify you entry until it works as you like. Testing the entry by submitting it to your local server.
./submit myentry.py
- When you're ready, submit your entry to the live server.
./submit live myentry.py
You can resubmit as many times as you like and your entry will compete with all other entries submitted. Once everyone has finished the scores will be cleared and every entry will play every other entry.
We recommend you write unit tests for your AI (example in ```demo_tests.py``` - run with ```./run-tests```) but since you won't - change ```config``` and set GAMES_TO_RUN to 1 and OVERRIDE to 1. This will allow you to re-submit your AI to the local server and have it play only a single game. This will make it easier to parse your print statements/etc.