Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dokato/pelita
pelita project from ASPP 2015 (Bonnie&Clyde team)
https://github.com/dokato/pelita
Last synced: 18 days ago
JSON representation
pelita project from ASPP 2015 (Bonnie&Clyde team)
- Host: GitHub
- URL: https://github.com/dokato/pelita
- Owner: dokato
- Created: 2015-09-07T22:33:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-07T22:34:04.000Z (over 9 years ago)
- Last Synced: 2024-10-16T12:39:51.330Z (2 months ago)
- Language: Python
- Size: 152 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# Pelita demo player module
## Notes on writing
* Please use Python 3
* Numpy is pre-installed on the tournament machine; everything else must be negotiated
* Please use relative imports inside your module
* You may need to set the PYTHONPATH to point to the main pelita directory## Files
### team/
The main module which contains all your team’s code. Please use relative imports from inside the module.
### team/__init__.py
Builds the final teams and exports the factory methods. When using the module on the command line, such as in
pelitagame ../path/to/module/team
the method named `factory` is automatically called. Different methods can be specified with a colon
pelitagame ../path/to/module/team:other_factory
### team/demo_player.py
Contains the code for a simple `DrunkPlayer`.
### team/utils/helper.py
This could be a good place for global utility functions (but feel free to add more files for this, if needed)
### team/utils/__init__.py
Needed to export the helper file.
### test/test_drunk_player.py
Simple unittest for your player. Note the relative imports. You can run tests using nosetests or py.test, which automatically executes all tests in the `test/` directory.
$ nosetests test/
.
----------------------------------------------------------------------
Ran 1 test in 0.025s
OK