Code Monkey home page Code Monkey logo

miyagi's Introduction

Miyagi

A classic puzzle sliding game

How to play

The goal of the game is to move the tiles around the board to match the goal state. The twist is that you can only move tiles that are adjacent to the empty space.

Check out the demo!

img.png

Controls

Hint Play/Pause Reset
Control Description
Play/Pause Pauses the game
Reset Resets the game to the initial state
Hint Generates a limited amount of hints one at a time for the current puzzle

Statistics

Statistic Description
Time The time it took to solve the puzzle
Moves The number of moves it took to solve the puzzle
Hints The number of hints used to solve the puzzle

Roadmap

  • Add a difficulty setting (3x3, 4x4, 5x5, 6x6)
  • Add a leaderboard (Currently stored in local storage)
  • Add a timer
  • Add a move counter
  • Add a hint counter (Currently only supports 3x3 puzzles)
  • Add a theme selector
  • Add a sound effect
  • Add a music player
  • Add a settings menu
  • Add a tutorial
  • Add a help menu
  • Add a credits menu

Puzzle Solver

The puzzle solver uses A* search to find the optimal solution to the puzzle. The heuristic used is the Manhattan distance. This currently only supports 3x3 puzzles.

miyagi's People

Contributors

privilegemendes avatar

Stargazers

 avatar

Watchers

 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.