Coder Social home page Coder Social logo

a-maze's Introduction

A-Maze

Create, Play, Share & Print mazes
A-Maze preview
(C) 2024 Jothin Kumar
MIT Licence
Play now at a-maze.jothin.tech

Maze Generation Demo

  1. Easy Level: joth.in/8e
  2. Medium Level: joth.in/8m
  3. Hard Level: joth.in/8h

Help

How to play?

  • Find the green dot in the maze. This will be the starting position
  • Find the red dot in the maze. This will be the final position
  • Start navigating to the final position

Navigation

  • Devices with physical keyboard: Use arrow keys or WASD to move. For Navigation Assist, press and hold space bar
  • Touch screen devices: Drag anywhere on the maze, in the direction you intend to move. To scroll, tap anywhere on the maze and drag immediately. For Navigation Assist, press and hold anywhere on the maze (or perform any other action that might trigger contextmenu)

Navigation Assist

  • In some cases, there is only one possible move other than going back
  • In these cases, you need not manually navigate. Navigation Assist comes in handy here

Common problems & solutions

  • Visibility issues: Disable any browser extensions that might interfere with color of the website. (eg: dark reader)

a-maze's People

Contributors

jothin-kumar avatar

Stargazers

 avatar

Watchers

 avatar

a-maze's Issues

Rating issue caused by getting rid of unused squares

Running the following code in any URL of the format https://a-maze.jothin.tech/2d?maze-data=... is supposed to return true

(new URLSearchParams(window.location.search)).get("maze-data") == exportMaze()

After "get rid of unused squares" feature is added, the exportMaze() function started including the hidden lines of unused squares in the maze data as well. This does not cause any issue with newly shared mazes. However, the old ones get affected by this.

The getDifficulty() function is affected by this issue as well. The rating prior to the change and the rating rn are not the same. There is an slight increase.

Solution

  • while exporting the maze or calculating difficulty, exclude the lines associated with unused squares
  • In the maze collection, replace any maze data added after the change

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.