Show HN: I made a deceptively simple but hard sliding puzzle
quaxio.com
quaxio.com
In fact, a fun meta-puzzle is to find a three-dimensional analog to this two-dimensional puzzle.
I believe this puzzle is equivalent to a Ehovxf phor ba n gbehf (rot13).
In this context it reveals the usefulness of commutators, which are moves of the form ABA'B', where A and B are some sequence of moves and ' denotes inverse.
In general A and B aren't commutative, but with respect to a subset of the pieces, the actions of A and B are effectively commutative, so ABA'B' will do nothing to those pieces. Which means you can get some simple permutation control over the remaining (usually much smaller) pieces of the puzzle.
Both the "easy/medium" and "hard" puzzles look tricky to make in their own way, my gut feeling is that he "hard" puzzle is the easier one to design.
I looked a bit for similar puzzles, and it seems this class of puzzles has a better name: A “Toroidal Sliding Block Puzzle”[1]
[1]: https://puzzlingiphone.wordpress.com/2008/11/22/toroidal-sli...
Somewhat relatedly, I keep wondering how board size affects the game of chess in particular.
It seems that a 1x8 board definitely leads to a stalemate (because the pawns in front of the kings would block each other), but at some point adding new columns (with the relevant pieces) makes the game impossible to exhaustively search, and at least plausibly introduces the ability for one of the players (presumably white) to win with perfect play.
That ability for a winning strategy to emerge just beyond our ability to compute is somehow tantalising.
Without changing the rules somewhat, it appears that the odds change dramatically enough to make easy wins for one of the players on such smaller boards. Hence, variants include some weird stuff.
On the other extreme, you get https://en.m.wikipedia.org/wiki/Infinite_chess
EDIT: Oh Ok, Medium isn't that hard either, much harder than easy though, just figuring out the last "row" is to toothsome part.
It also has a detailed description of the solution in the more complicated cases, depending on the parity of each dimension.
https://news.ycombinator.com/item?id=30956775 (368 points, 124 comments)
Not a dunk on you, people come up with similar or identical ideas all the time without knowing at all about previous instances of the idea.
I first learned about this game from a YouTuber named Cary KH, he named his game Loop Over.
https://segaretro.org/Kinetic_Connection
“Game 3” is the mode that rotates rows and columns like a Rubik’s Cube.
There are probably earlier examples, but that’s the one that I’m familiar with. I imagine a clever person could adapt it into a simple word game as well. Old computer and console games are a gold mine for ideas for simple puzzle games.
https://www.emulatorgames.net/roms/zx-spectrum/nowotnik-puzz...
Probably not a perfectly efficient strategy but it makes it easier to think about.
https://userstyles.world/style/4975/alok-s-sliding-puzzle-cu...
(It will break the moment author will change inline style.)
My comment was to bring the red-green choice to the author's awareness, not to use HN as a complaint forum
Author of the game also updated the contrast [1], so now it is light blue versus slightly darker violet, but still with same default (usually black) text colour [1]. Do you like it better? Or would you prefer classical black versus white or something in this lines?
[0] https://userstyles.world/api/style/preview/4975.webp
[1] https://github.com/alokmenghrajani/sliding_puzzle/commit/20c...
[2] https://github.com/alokmenghrajani/sliding_puzzle/raw/main/s...
the other was that found it easiest to move to known state and then solve, like an intermediate canonical isomorph instead of solving directly as human without machine group theory super rotators
I can solve rubiks cube <30 seconds, and it definitely reminds me of it.
Thanks!
1 shift-b shift-1 b shift-t shift-b 1 b shift-1 t
edit: you put tiles at random for shuffle? It's not correct for the hard level. Only even permutations are accessible.
edit: maybe I was tired when counting my permutations, forget the last edit