Coder Social home page Coder Social logo

stannislav / battleships Goto Github PK

View Code? Open in Web Editor NEW

This project forked from southampton-code-dojo/battleships

0.0 3.0 0.0 8.14 MB

Framework for running Python battleships AIs

License: MIT License

Python 13.04% Shell 0.16% Ruby 0.21% CSS 85.43% JavaScript 0.36% Smarty 0.81%

battleships's Introduction

battleships

Framework for running Python battleships AIs

Getting Started

  1. Ensure you have python2, pip, and virtualenv installed.
  2. Update config to match the live server address.
  nano config
  1. Run the setup script.
  ./setup
  1. Run a local server.
  ./run-server
  1. Open your server's webpage.
  open http://localhost:8080
  1. Make a copy of the demo code
  cp demo.py myentry.py
  1. Update the TEAM_NAME variable in your entry. It should be something unique.
  2. Modify you entry until it works as you like. Testing the entry by submitting it to your local server.
  ./submit myentry.py
  1. 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.

battleships's People

Contributors

jscott1989 avatar stannislav avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.