Giter Site home page Giter Site logo

pelita's Introduction

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

pelita's People

Contributors

dokato avatar debilski avatar

Watchers

James Cloos 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.