Giter Site home page Giter Site logo

ptpt / slidingpuzzle Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 3.0 357 KB

A sliding puzzle game written in CoffeeScript https://taopeng.me/SlidingPuzzle/

License: MIT License

CSS 19.72% JavaScript 17.35% CoffeeScript 57.43% Makefile 0.54% HTML 4.96%
coffeescript game puzzle

slidingpuzzle's People

Contributors

ptpt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

slidingpuzzle's Issues

Choose empty square

Hi,
this is a nice plugin, thank you.
I would like to choose the empty square at init. I searched de js but i'm still stucked with some bugs.

in Puzzle.prototype.rebuild if I set this/emtyCol and this.emptyRow to 1 it does not affect the render.
int the same function if i change this test : if (row == this.emptyRow && col == this.emptyCol) to if (row == 1 && col == 1) . the empty squera is well placed, but the script still beleives the the empty is the last one.

Can you help me to find the solution please ?

Thank you

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.