r/learnjavascript • u/SuboptimalEng • Feb 03 '22
I was trying to code a Rubik's cube and this happened.
26
8
7
5
4
2
u/Bobitsmagic Feb 03 '22
Omg you have the exact same error i had a few years ago. What a coincidence.
1
2
2
131
48
11
11
10
1
2
u/ItsMilkmayn Feb 04 '22
I'm not going to lie. I downloaded the code and I plan to make bunches of money.
2
u/Zeus_GIS Feb 04 '22
This would be great on a loading screen. This would easily distract well into a few minutes. Gives me 00’s screen saver vibes.
1
2
1
1
1
1
1
1
1
1
1
u/Dry_Balance_4845 Feb 07 '22
wanna feel smart? try this revolutionary new rubik’s cube design you can solve in seconds!
1
50
u/SuboptimalEng Feb 03 '22 edited May 29 '23
So I've been trying to code a Rubik's cube (with Three.js) for the past 2 days, but it was a lot harder than I anticipated. At least the results were interesting...
Code on GitHub
4 Minute Demo on YouTube
Edit: I found the bug - it was a one-liner.