Git Product home page Git Product logo

jgraph's Introduction

JGraph

Disclaimer: I run it on the lab machines.

Description: This program generates random mazes with JGraph.

Sample 5x5 maze

TO RUN:

  • add jgraph to your path (note: must log out and back in for change to take effect)
    • append "export PATH="$PATH:/home/jplank/bin/LINUX-X86_64" to the end of "~/.zsh.path"
  • run make
  • make sure maze.sh is executable (chmod +x maze.sh)
  • run ./maze.sh <length> <width> to test custom mazes, or try ./maze.sh test to generate 5 random mazes
  • display image with display <img>
    • if I end up adding live updating, do display -update 1 maze.jpg to auto refresh the image

Misc. Notes:

  • Black squares are the path and the whitespace is the walls.
  • I originally wanted to make an interactive 3D game, but the idea was eventually pared down into a maze generator/solver. Being able to walk through the maze manually is something I would like to implement in the future (maybe even 3D!).

TODO:

  • Maze generation limited to at most 5x5 right now presumably due to how I handle walls.
  • Still working on the solving portion..
  • Smooth live updates to display maze as it's generated.

jgraph's People

Contributors

obsidianskin avatar

Watchers

 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.