Code Monkey home page Code Monkey logo

pixelmaze's Introduction

PixelMaze

A maze drawer for the Pixelflut protocol.

It draws a randomly generated "perfect" maze on an Pixelflut Canvas. All mazes can be solved and if wanted the maze can be periodically refreshed.

This project is based on the HacktoberfestMunich/Pixelflut repository. It's now on its own for better maintainability and all dependencies were updated to the latest version. For the maze generation it uses the generator from armin-reichert/mazes.

How to use

The PixelMaze application is available as artefact over the releases or as docker image. If you are using the artifact make sure at least Java 15 is available on our system.

java -jar PixelMaze-<version>.jar
# or docker
docker run -it --rm ghcr.io/poeschl/pixelmaze

The PixelMaze application can be parameterized with following parameters (can also be shown with -h or --help)

usage: [-h] [--host HOST] [-p PORT] [-x X] [-y Y] [--width WIDTH]
       [--height HEIGHT] [-t TIMER] [--blank] [-c CELLSIZE]

optional arguments:
  -h, --help            show this help message and exit

  --host HOST           The host of the pixelflut server

  -p PORT, --port PORT  The port of the server

  -x X                  The x start position

  -y Y                  The y start position

  --width WIDTH         The maze width in pixel

  --height HEIGHT       The maze height in pixel

  -t TIMER,             Enable the regen of the maze after the value specified
  --timer TIMER         in seconds

  --blank               Enables blanking before redraw

  -c CELLSIZE,          The size inside a maze cell
  --cellsize CELLSIZE

Compile project

To set up the project make sure you have Java (> 15) installed then run .\gradlew shadowJar inside the project folder to generate an executable jar.

pixelmaze's People

Contributors

dependabot[bot] avatar poeschl avatar

Watchers

 avatar  avatar

pixelmaze's Issues

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.