Giter VIP home page Giter VIP logo

blotto's Introduction

http://en.wikipedia.org/wiki/Blotto_games

To be played at the MathSpace event on 6th March, https://wiki.london.hackspace.org.uk/view/Group:MathSpace

Download the code and start writing your own strategy or additions to the codebase. Please push anything you work on! Post on the mailing list (https://groups.google.com/forum/#!forum/lhs-mathspace) with any questions.

To get started, copy SimpleStrategy (in the Strategies folder) and rename it to your own strategy name in the same directory. The basic task is to implement soldiers_request which is where you decide your move on each turn. Simple examples to look at:

  • StaticStrategy
  • CopierStrategy

To test your strategy out look at scripts/test_my_strat.py.**

You may need to add the repo directory to your python path, I had forgotten about this, sorry! Update, try running from the repo directory, if that doesnt work add repo directory to python path

On the night we will start by battling 100 soldiers, across 8 fields, and 10,000 runs. The winner will be the one that wins the most games over all 10,000 runs, i.e. a max score of 10,000. People might mess around with other setups afterwards. Suggestions of weighted field values or more/less soldiers/fields

Uses:

  • python2.7

Optional:

  • matplotlib (sudo apt-get install python-matplotlib on linux or equivalent elsewhere)
  • numpy (sudo apt-get install python-numpy on linux or equivalent elsewhere)
  • progressbar (sudo pip install progressbar on linux or equivalent elsewhere)

blotto's People

Contributors

camzz avatar lopsy avatar mscroggs avatar merovius avatar tharax 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.