Giter VIP home page Giter VIP logo

botany's Introduction

Botany

Botany is a platform for running tournaments between Python bots.

Contributing

Botany is my project, but I welcome contributions in the form of bug reports, feature requests, and code.

To report a bug or request a feature, please raise an issue (checking for duplicates first).

To be accepted, a requested feature must be generally useful, and should not unreasonably increase the complexity of the codebase.

For non-trivial code changes, it would be best to first raise an issue that outlines the proposed change.

I have my own idiosyncratic ideas about how code should be written. When reviewing a pull request, I may request changes to ensure the code is generally correct, but I won't want to get too bogged down in details. As such, I may merge code and then partially re-write it. Please do not be put out if I do this!

Thank you to all the contributors.

Finally, please ensure that you are kind, considerate, and respectful when interacting on the issue tracker.

Development

The code is split into three modules:

  • server: a Django app that handles submission of bot code, runs the tournament, and displays a leaderboard
  • client a terminal application for developing and testing bots
  • core: code common to the server and the client, including code for running games and validating bots

Developing the server

Setup:

  • Ensure Postgres and Redis are installed and running locally

  • Create a virtualenv and run:

    • pip install -r requirements-dev.txt
    • pip install -r server/requirements.txt
  • Copy server/.env-sample to server/.env

  • You may need to change the DATABASE_URL and REDIS_URL values in .env

    • By default, we expect a Postgres database called botany to exist
      • Run createdb botany
  • Run database migrations (in server/)

    • python manage.py migrate

Running the server:

  • From the server directory, run python manage.py runserver

Running the tests:

  • From the server directory, run python manage.py test

botany's People

Contributors

inglesp avatar theref avatar dokato avatar mjpieters avatar percevalve avatar

Watchers

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