Giter Site home page Giter Site logo

forcity_trasherbot's Introduction

Trasher Bot

Prototype project for ForCity

Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public. Build Status

Instructions

Structure is based on this article. Source code can be found in the src folder, and tests in the tests folder.

To install the package, simply execute

➤ pip install -r requirements_dev.txt

We use tox for the tests. This ensure a clear separation between the development environment and the test environment. To launch the tests, run the tox command:

➤ tox

It first starts with a bunch of checks (flask8 and others) and then launch the tests using python 3.

Packaging

A Dockerfile is provided to build an image ready to be deployed, see docker/Dockerfile. You can build the image using make:

➤ make docker

This will create a new image named ``.

PyPi: Docker container for PyPi server

Run

On Windows with Docker

λ docker build -t yoyonel/forcity_trasherbot:0.9.0 -f docker\Dockerfile  .
...
Successfully built 14c63bf8a20f
Successfully tagged yoyonel/forcity_trasherbot:0.9.0

[...]\forcity_trasherbot (master -> origin)
λ docker run -it --rm -v %cd%/data:/data yoyonel/forcity_trasherbot:0.9.0 /data/config_00.json
2018-12-02 00:04:34,185 - forcity.trasherbot.app - INFO - application version: 0.9.0
2018-12-02 00:04:34,188 - forcity.trasherbot.simulator - INFO - init game: trash pop, remaining 1
2018-12-02 00:04:34,189 - forcity.trasherbot.simulator - INFO - init game: trash pop, remaining 2
2018-12-02 00:04:34,189 - forcity.trasherbot.simulator - INFO - init game: trash pop, remaining 3
2018-12-02 00:04:34,189 - forcity.trasherbot.simulator - INFO - Round 2/50: trash collected, remaining 2
2018-12-02 00:04:34,189 - forcity.trasherbot.simulator - INFO - Round 4/50: trash collected, remaining 1
2018-12-02 00:04:34,190 - forcity.trasherbot.simulator - INFO - Round 4/50: trash pop, remaining 2
2018-12-02 00:04:34,190 - forcity.trasherbot.simulator - INFO - Round 5/50: trash collected, remaining 1
2018-12-02 00:04:34,190 - forcity.trasherbot.simulator - INFO - Round 6/50: trash collected, remaining 0
2018-12-02 00:04:34,190 - forcity.trasherbot.simulator - INFO - success. Collected all trashes in 6 rounds

Screencast (Asciinema)

[asciicast

forcity_trasherbot's People

Contributors

yoyonel 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.