News for hackers. Stuff that matters.
Re:Show HN: A puzzle game I wrote in JavaScript by atum47 on Saturday October 24, 2020 @11:48AM (#24879905)
Hi everyone, I've made this simple yet fun game about 3 days ago when I couldn't sleep. I later added the option to increase the size of the "cube" making it more difficult to solve. Hope you like it.

Source code is here: https://github.com/victorqribeiro/scramble

Re:Show HN: A puzzle game I wrote in JavaScript by iaHN on Monday October 26, 2020 @02:05AM (#24893218)
I see myself playing this quite a bit whenever I have a few minutes to kill.

Thanks for sharing—very well done.

Re:Show HN: A puzzle game I wrote in JavaScript by atum47 on Monday October 26, 2020 @09:43AM (#24896060)
thanks
Re:Show HN: A puzzle game I wrote in JavaScript by archa on Sunday October 25, 2020 @03:22AM (#24884446)
Awesome. Special thanx for 5x5 mode
Re:Show HN: A puzzle game I wrote in JavaScript by archa on Sunday October 25, 2020 @03:54AM (#24884588)
30 minutes later I understand that I got unsolvable combination :-)
Re:Show HN: A puzzle game I wrote in JavaScript by atum47 on Sunday October 25, 2020 @05:49AM (#24885063)
I was about to ask you this, haha. How long took you to notice?

I read a guide on how to solve 8-puzzle, and even with the guide I couldn't solve it. So I went to the math of it, and read an article[1] that gives a proof if a board is solvable or not.

Dumb me! The way I was creating the board I would make it unsolvable with a even board (4x4). The 3x3 and 5x5 were fine.

The bug is fixed. Sorry about that. I'm laughing so hard because even I couldn't solve any 4x4 games.

1 - https://www.geeksforgeeks.org/check-instance-15-puzzle-solva...

Re:Show HN: A puzzle game I wrote in JavaScript by archa on Sunday October 25, 2020 @08:22AM (#24885756)
I solved all of them except last 2 pieces, next 15-20 minutes made me sure that something has gone wrong. I decided to read more about these puzzles and knew that they're unsolvable in 50% cases.

That was funny, thanks a lot!

Re:Show HN: A puzzle game I wrote in JavaScript by lemoncurd on Sunday October 25, 2020 @10:34AM (#24886580)
quite nice
Re:Show HN: A puzzle game I wrote in JavaScript by atum47 on Sunday October 25, 2020 @01:52PM (#24888296)
Thank you