-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
686ff65
commit 9d121c4
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
sliding_puzzle | ||
============== | ||
|
||
A simple sliding blocks puzzle game. You can also create your own puzzle and then click on "Get Url" to get | ||
a link which will recreate the puzzle whenever someone clicks on it. | ||
|
||
Here's a tiny commentary about the coding style. I have, in a long time, deviated from using separate screens | ||
and provided you with a game in its first screen. I was trying to emulate the actual hardware toy of | ||
the same game which is just there and does not have a Main Menu. One of the consequences of this approach | ||
is a few lines (maybe more than a few) of repeated code and inefficient algorithms. | ||
If you go through the code of game.js file, you'll see a lot of places where you may go "WHY!?" and in certain cases, | ||
I've genuinely forgotten why, even though the I made the whole game in less than a day. | ||
So please forgive the crass coding and try and enjoy the game! | ||
|