<commit_before>[![Alt text](https://api.travis-ci.org/davide-ceretti/strategypy.svg?branch=master)](https://travis-ci.org/davide-ceretti/strategypy)
[![Alt text](http://coveralls.io/repos/davide-ceretti/strategypy/badge.png?branch=master)](https://coveralls.io/r/davide-ceretti/strategypy)

strategypy
----------

The idea is to provide a framework so that people can implement their own bot for a simple strategy game and compete versus each other. The project is currently in development (no alpha yet).

Most of the code not covered by unittests is pygame calls.

Installation
------------

* ```sudo apt-get install mercurial libfreetype6-dev python-dev python-numpy ffmpeg libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsmpeg-dev libsdl1.2-dev libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev```
* ```pip install -r requirements.txt```

Usage
-----

* ```source scripts/run_tests```
* ```source scripts/run_example```

General usage is ```python strategypy/main.py <name_of_bot_one> <<name_of_bot_two> ...```

API for bots
------------

TBD. Meanwhile have a look at strategypy/bots<commit_msg>Add TODOs/Improvements<commit_after>[![Alt text](https://api.travis-ci.org/davide-ceretti/strategypy.svg?branch=master)](https://travis-ci.org/davide-ceretti/strategypy)
[![Alt text](http://coveralls.io/repos/davide-ceretti/strategypy/badge.png?branch=master)](https://coveralls.io/r/davide-ceretti/strategypy)

strategypy
----------

The idea is to provide a framework so that people can implement their own bot for a simple strategy game and compete versus each other. The project is currently in development (no alpha yet).

Most of the code not covered by unittests is pygame calls.

Installation
------------

* ```sudo apt-get install mercurial libfreetype6-dev python-dev python-numpy ffmpeg libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsmpeg-dev libsdl1.2-dev libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev```
* ```pip install -r requirements.txt```

Usage
-----

* ```source scripts/run_tests```
* ```source scripts/run_example```

General usage is ```python strategypy/main.py <name_of_bot_one> <<name_of_bot_two> ...```

TODO / Improvements
-------------------

* API for Bots
* Security (Disable os, HTTP etc..)
* Anti-cheating (Isolate bots from what is not exposed by the API)
* Drop pygame for a JS FE (Game still played in Python)
* Numpy / Performance improvements
* Performance tracking
* Rework game rules and engine to make it more interesting
{'fraction_non_alphanumeric': 0.1488095238095238, 'fraction_numerical': 0.007142857142857143, 'mean_word_length': 4.113590263691684, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '391922', 'n_tokens_mistral': 853, 'n_tokens_neox': 835, 'n_words': 225}