News for hackers. Stuff that matters.
Re:Show HN: Make a rectangle – a puzzle game by petepete on Tuesday September 29, 2015 @10:56AM (#10296746)
So I made a rectangle and nothing happened. Is it supposed to, or am I meant to simply bask in my quadrilateral glory?
Re:Show HN: Make a rectangle – a puzzle game by kelukelugames on Tuesday September 29, 2015 @11:00AM (#10296782)
Bask!

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. :)

Re:Show HN: Make a rectangle – a puzzle game by goorpyguy on Tuesday September 29, 2015 @11:32AM (#10297019)
You'd probably have to check algorithmically. Starting from the top-left most piece, have they (reasonably fuzzily) covered the 6x10 grid proceeding down and right? If so, yay! You can also check for things like too much overlap, but checking if there is a piece covering each of the centers of the relative grid should be sufficient.

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.

Re:Show HN: Make a rectangle – a puzzle game by Nadya on Tuesday September 29, 2015 @12:08PM (#10297286)
>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

Re:Show HN: Make a rectangle – a puzzle game by brokentone on Tuesday September 29, 2015 @11:31AM (#10297012)
Edges with smoothing, and counting inside. If you only have 4 edges, then you win
Re:Show HN: Make a rectangle – a puzzle game by nkrisc on Tuesday September 29, 2015 @11:00AM (#10296778)
Is that not enough satisfaction!? What more do you want?