Show HN: Make a rectangle – a puzzle game
github.com
github.com
For those who aren't familiar with this puzzle, the goal is to take the 12 pieces and make a 10x6 rectangle. The 12 pieces are known as Pentominos, and each one is a unique arrangement of 5 squares connected on the edges. There are more than 2000 different ways to arrange the pieces into a 10x60 rectangle.
It's a lot of fun!
Thanks for the suggestion. I should add a screenshot function or something.
There are thousands of solutions so I couldn't figure out a good way to detect if the user was finished. Much to learn I have. :)
My first solution: http://i.imgur.com/rV2Ueow.png
edit: It also was not clear up front that I could click to rotate/flip the pieces, until I did it by accident.
This explains why I couldn't solve it... I was feeling rather stupid seeing all the people solving it with 1,000's of solutions but I couldn't find one.
Thanks! :P
It might be a good idea to turn it into a game where it starts easy, gets harder, and you can share the level you achieved and brag about it (like 1 2 3 4 5 6 7, the level could be stored in localStorage so a user can continue fresh from that same level later on, with a different random pieceset)
Edit: Just checked the code, impressive :) - I assumed the game and pieces were randomly generated
It took me a while to get it working on Android and desktop. I need to get better at making things cross platform.