The moves are reversed? i.e., F is F'<p><a href="https://everycube.alen.is/?view=3d&alg=R%20U%20R%27%20U%27" rel="nofollow">https://everycube.alen.is/?view=3d&alg=R%20U%20R%27%20U%27</a><p>Should be:<p><a href="https://alg.cubing.net/?alg=R_U_R-_U-" rel="nofollow">https://alg.cubing.net/?alg=R_U_R-_U-</a>
I wrote a 3d rubiks cube slot machine for my old online casino. It scrambled the cube randomly 4 times and gave the player 60 seconds to solve it by twisting up to 3 times. Lots of weird quaternion math to handle the spinning and shift key twisting at the same time. All with simple geometry in Away3D / AS3.<p>The real hard part of designing that game was creating the payout structure. The game paid an equal amount for each "line" of 3 colors in a row on any face after the player made their third move. There was a progressive take and jackpot for a perfect solution. And I specifically wanted to target a zero house edge for the game, to reward the best problem solvers. So the question was, given 4 random twists off a perfect cube, what are the individual chances of getting 64, 63, 62...1 lines of sequential color given the best 3 spins from the initial random state, and then hiw to allocate the payout structure accordingly.<p>Probably a billion monte carlo runs and I had a pay table. It was lots of fun. I wish more gambling games rewarded skill that way.
Casino games are rarely zero house edge. Is there a way you signaled this feature to problem solvers? Did the game prove to be successful?
any time there is skill in an online casino game where money is involved, there is cheating too
Just change the parity by swapping two stickers on a corner piece, and no amount of skill can solve it.
Plus this would seemingly violate compliance with laws protecting disabled people. For instance, someone with mobility issues might know the solution but wouldn't be able to hit the buttons in time.
[dead]
Sweet, can I mint these as NFTs? I don't know how to multiply 43252003274489856000 by 50 USD but I think it could make me a lot of money, and I like money.
Joke's on you, I'm going to do the same thing but only charge $5. Sucker!
Donald, is that you?
That's more money than there is in the universe, I think you're onto a winner here!
You only need to sell one at $50, then market cap does the rest and you are boundlessly rich.
If we can capture even 1% of the market…
In case someone is curious, NFTs were tradeable tokens popular for a short while in the early 2020s.<p>> Initially pitched in 2017 as a new class of investment asset, NFT trading increased from US$82 million in 2020 to US$17 billion in 2021. Its market was occasionally compared to an economic bubble or a Ponzi scheme. In 2022, the NFT market collapsed; a May 2022 estimate was that the number of sales was down over 90% compared to 2021. By September 2023 one report claimed that over 95% of NFT collections had zero monetary value.<p><a href="https://en.wikipedia.org/wiki/Non-fungible_token" rel="nofollow">https://en.wikipedia.org/wiki/Non-fungible_token</a><p>/s
My scroll wheel covers about 12 states per inch of travel. Did the stubby pencil work and it would take about 9.5 years to scroll through them all if the wheel surface was moving at the speed of light.
This is a nice visualization.
Are there any keyboard keys to just advance one position along the line? I tried the arrow keys but they jumped quite far.<p>I don't know how this was generated (BFS and flattening?) it seems adjacent indices aren't just one move apart ... but they could be!<p>There is a Hamiltonian circuit for Rubik's cube:
<a href="https://bruce.cubing.net/ham333/rubikhamiltonexplanation.html" rel="nofollow">https://bruce.cubing.net/ham333/rubikhamiltonexplanation.htm...</a><p>Following the circuit would be like Gray codes instead of binary digits. You only flip one bit at a time when going to the next number.
Reminds me of a book I recently read:<p><a href="https://en.wikipedia.org/wiki/A_Short_Stay_in_Hell" rel="nofollow">https://en.wikipedia.org/wiki/A_Short_Stay_in_Hell</a><p>The numbers produced by permutations are astounding! Especially compared to the (much smaller) numbers in our actual physical universe.
My favorite one is chess games. If you managed to compress each chess game down to just a single atom, the physical size of a disk to save this data would exceed the amount of atoms in the universe. Even the number of theoretic positions (ignoring legality/possibility) is just below the number of atoms in the universe.<p>Though it must be said that once one starts looking at permutations of things, the number of atoms in the universe seems quite small indeed. 10^80? What's that, like 7 or 8?
The number of permutations of <i>n</i> distinct objects is <i>n!</i>. So, probably a bit more than 8, since <i>8! < 10⁸</i>, but I don’t think you are terribly off :-)<p>Edit: <i>58! < 10⁸⁰ < 59!</i>
Reminds me of that time when, as an undergraduate, my "team" entered a Problem Solving Competition and couldn't choose one of the two problems so we did both in parallel.<p>One of us wrote a program in BASIC on a Tandy 1000 that the rest of us estimated would take more than a google years to finish, but he wasn't be dissuaded and let it run the whole weekend.<p>I made an analysis that was mostly correct but was off by a factor of four because I mistook a radius for a diameter.
Ah nice, it has some of my favourites!
This is pretty cool. Same concept (and I would assume implementation) as <a href="https://everyuuid.com/" rel="nofollow">https://everyuuid.com/</a><p>Implementation details can be found here: <a href="https://eieio.games/blog/writing-down-every-uuid/" rel="nofollow">https://eieio.games/blog/writing-down-every-uuid/</a>
Anyone else surprised how small the number is?
It looks quite big without commas but if you add them in it looks like the sort of number that is almost conceivable
43,252,003,274,489,856,000
43 quintillion, that's the type of number i've vaguely heard of.
Compared to the number of possibilities for a shuffled deck of cards
80,658,175,170,943,878,571,660,636,856,403,766,975,289,505,440,883,277,804,000,000,000,000
Thats a big number, and weirdly I think those 00s at the end are exact not a rounding error.
It felt pretty big to me, considering Rubik's cubes only have 26 pieces, their valid slots are not all the same, and some of their states are mirrored.
And yet sorting a deck of cards is much easier than solving the cube.<p>43,252,003,274,489,856,000 is a fun trivia number, but it tells you nothing about how hard it is to solve the cube.
Maybe show the minimum number of moves required to solve each state :)<p>And maybe sort them by "distance to solved".
I used the "FX" option and I think there's a bug. The center tiles on each side always stay in the same position.
I think you thought a /s can be sometimes implied in HN comments
On a Rubiks cube, the center tile always remains constant. I was surprised at this when I accidentally broke one apart to find a static 3d cross piece to each cube face (e.g. a non-moving tile). Everything else rotates around it
The center tiles on a Rubik's cube don't move, they only rotate in place.
It took Ernő Rubik four years to develop the cube.<p>He immediately scrambled it, then spent the next month figuring out if it could be solved.<p>Luckily no one told him there were 43 quintillion valid combinations.
There are 43,252,003,274,489,856,000 (~4.3 × 10¹⁹) different positions.
1. If I try every position (1 position/sec) knowing it's unique, it will take me 1.37 trillion years.
2. If the pro tries (let's say 10 positions/sec), it will take 137 billion years.
The universe is younger than that. :-D<p>Wondering how fast the machine or computer will do that?
Application error: a client-side exception has occurred (see the browser console for more information).<p>iPhone; Safari; Lockdown mode.
Reminds me of <a href="https://everyuuid.com/" rel="nofollow">https://everyuuid.com/</a>
> Application error: a client-side exception has occurred (see the browser console for more information).<p>On ios Firefox and Safari unfortunately, would love to see this site
Wouldn't it be cool to click and then see the quickest solution and it rotates in front of you, or a sequence of moves to solve.
Wow, this was really fun to play around with! Amazing execution and launch!<p>Quick feedback: it’d be great if the page updated when the URL changes, so you can explore different positions without reloading.<p>Right now, if I change the URL/hash of the cube position (eg: incrementing by 1 <a href="https://everycube.alen.is/?view=3d#5319001606686939024" rel="nofollow">https://everycube.alen.is/?view=3d#5319001606686939024</a>
), the app doesn’t update and I have to open the new URL in a separate tab to see the new position. [Chrome 150 on Mac OS X 10.15.7]
I love this. Excellent weird internet thing.
How did the kid who could solve the Rubik's Cube in under 1 min <i>not</i> become an algorithm designer - some genius backend dev?<p>I blame guitars.<p>All these kids got bad ass at playing Wonderwall, PHP was just <i>slightly</i> less cool than playing Wonderwall. So for 2-4 years they were sidetracked.<p>Playing Wonderwall at parties.<p>But if they had went straight from solving Rubik's Cube in 1 min to O(1) time complexity in a REST endpoint like peak 2-way communications (WebSocket, GRPC) these fuckers would be optimizing LLM embeddings at this point.<p>Karpathy? No, I want Steve from the Chess club who could recite any J.R.R. Tolkien writing, who has a Runescape character worth $4 million. Fuck LeCunn. Where's Steve?!<p>STEVE! I'm sorry I laughed at your Pokemon collection. I'm sorry Steve! I'm fucking sorry! PLEASE COME BACK
With all due respect to Steve, under 1 minute isn't <i>that</i> impressive. You can get there just by doing the beginner's method (a handful of different move-sequences) rapidly. The people who really study Rubik's Cube algorithms in depth can do it in a few seconds.
Hahah what are you doing here???<p>I had a friend - David - he could do it insanely quick. He's basically who I am thinking of in my post since he was also a genius at guitar, and could play beautifully. And he taught me basic PHP.<p>We spent a lot of time on your site on random Friday nights (him playing guitar) hahah, good times.<p>More of a yo-yo guy myself. I could walk the dog, pendulum, what-have-you. Around the world if I'm feeling saucy<p>Also: Gross, wtf happened to it???? If you can't say publicly, just blink 3 times
I remember a TV program showing someone breaking the one minute record for the first time. I could already do it at that point, I'm sure many others could as well.
>How did the kid who could solve the Rubik's Cube in under 1 min not become an algorithm designer - some genius backend dev?<p>Somebody else figured out the algs. The speedcubers just rote memorize them and then practice becomes mostly about execution. (Oversimplifying a little, but I have gotten sub-60 myself with the Roux method a few years ago)<p>Interestingly I've never managed to pick up programming but learned the cube pretty well (as an adult), and my programmer friend can't seem to figure out the cube at all even with me giving him extra help on top of linking materials I learned from. I suspect it's a very different skillset and we're both weak in one area.
Yeah goes to show why Leetcode is such a problem for so many very good developers.<p>It's a different kind of thinking.<p>That said, if that "clicked" for you, you may find yourself surprisingly good at backend - algorithmic thinking shines in crypto, search, and LLMs. Get into Python or Node if you haven't for some random idea (ever wanted to make a web contact form or something?) - the LLMs will set you up for success. If you figured out Rubik's Cube, you will 1000% get it because I know you have the patience and learning ability.<p>----<p>There is one algorithm I saw recently on Youtube, the bro pops one of the little cubes off and "cheats" by turning it around manually.<p>I consider this to be "freestyling" with the Rubik's Cube. Wtf is that all about?
What's the correct way to sort a Rubik's Cube state?
OK. So I put the slider into a random middle location. Then I zipped it back all the way left as fast as I could. <i>Still</i> not up to competitive speed cubing level! Shucks, golly, gee.
First thought; this could be turned into a really cool password generator
This is very satisfying to play with, top work!
well that's just like, your coordinate system, man
But, why?
structure emerges from chaos at 23,738,673,083,197,685,761 & 34,677,398,788,068,093,945
Took me a hell of a lot more moves than that (30 septendecillion) for structure to emerge from chaos with paperclips.<p><a href="https://en.wikipedia.org/wiki/Universal_Paperclips" rel="nofollow">https://en.wikipedia.org/wiki/Universal_Paperclips</a><p><a href="https://www.decisionproblem.com/paperclips/index2.html" rel="nofollow">https://www.decisionproblem.com/paperclips/index2.html</a><p><pre><code> Universal Paperclips
• a game by Frank Lantz
• combat programming by Bennett Foddy
'Riversong' by Tonto's Expanding Headband used by kind permission of Malcolm Cecil
> © 2017 Everybody House Games I
Paperclips: 30,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000</code></pre>
True! How did you spot this though? Did you look at every possible position?!?
nice, now sort the list in some interesting way
literally doom scrolling
Cool!
this does permutations of pieces position and orientation<p>would be cool permutations of moves instead...the visuals would be especially interesting to have as a raw Rubik's simulator
cool!
It would be really funny, and sociopathic, if every state change registered as a browser history entry so I had to click Back 50,000 times to get back to Hacker News.
Oh wow, you don’t do “Open in New Tab” when reading HN?
Thanks for the idea, I should really try that, maybe it will help with my infinite open tabs problem.
I think you missed at least a few, can you re-check through them?
At some point though, how many states is <i>too many</i>?<p>We have massive housing affordability and employment shortage problems, meanwhile here’s a tech elite flouting 4x10^9 states which he doesn’t pay taxes on and most of them will not even get used. Is that really fair?
[dead]
[flagged]
[flagged]
[dead]
[dead]
Non-AI posts be like