Giter Site home page Giter Site logo

zlej-rob's Introduction

Zlej Rob

A semi-intelligent solver for RoboZZle. Solved 2,000+ puzzles. See zlejrob's profile โ€“ currently in top 50 of 100,000+ players.

Build Status

Install

You'll need python 3 and pip installed. After that, install project dependencies with:

pip install -r requirements.txt --use-mirrors

Watch out: pip refers to Python 2 version of pip on certain systems (Ubuntu). You might need to specify the version explicitly by calling e.g. pip-3.3 instead.

Use

The following is a sample of how to run zlejrob. Not knowing optimal solver configuration myself, I'll leave that as an exercise for the reader:

from zlejrob import Client, Runner, Zlo

client = Client({
    'name': 'name',   
    'pass': 'password',   
})

solver_config = {
    'star_score': int,
    'reached_score': int,
    'length_penalty': int,
    'degeneration': float,
    'mutability': int,
    'offsprings': int,
    'survivors': int,
    'generation_limit': int,        
}

zlo = Zlo(client, Runner(max_steps=100), solver_config)
zlo.fetch_solve_submit(27) # fetch and solve one puzzle
zlo.solve_unsolved_puzzles() # run through the default campaign

Please do not submit zlejrob solutions as your own.

Contribute

A prerequisite for running the test suite is putting your robozzle.com login details in zlejrob/config.py. The test suite can be run with:

python -m unittest discover

Watch out: python refers to Python 3, on certain systems (Ubuntu), you'll need to specify the version explicitly by using python3 instead.

zlej-rob's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

dotmark

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.