Because of Covid-19(The coronavirus), I have had lot more time to work on repl.it so I decided to make this fun code!

Did you know that a 3 x 3 x 3 Rubik's cube has over 43 Quintillion or 43 Million Trillion different positions?

Calculate how many different combinations, visualize the Rubik's cube, and learn how many digits the number is with this simple program!

Instructions

Enter a number 1 - 100 into the input( you can put higher numbers later)

Press "Calculate" and wait.

A simulated version of the top-view of the Rubik's cube will be displayed to the left, and to the right, the number of possible combinations for that Rubik's cube (the 3d version of course).

If the number you chose was big enough, you will be able to scroll through the number to the bottom, otherwise, the whole number will be displayed in front of you.

If you didn't listen to me and chose a number higher than 100, you may get a few "Page Unresponsive" popups but you can just close them out and ignore them

Stats

Here are some of the results that I got for varying cube sizes!

2 x 2 x 2 - 7 digits

3 x 3 x 3 - 20 digits

4 x 4 x 4 - 46 digits

5 x 5 x 5 - 59 digits

6 x 6 x 6 - 117 digits

7 x 7 x 7 - 130 digits

8 x 8 x 8 - 218 digits

9 x 9 x 9 - 231 digits

10 x 10 x 10 - 350 digits

33 x 33 x 33 (Largest Rubik's Cube) - 3,867 digits

100 x 100 x 100 - 38,416 digits (Takes a few seconds)

150 x 150 x 150 - 86,708 digits

200 x 200 x 200 - 154,390 digits

250 x 250 x 250 - 241,461 digits

300 x 300 x 300 - 347,922 digits

350 x 350 x 350 - 473,771 digits

400 x 400 x 400 - 619,010 digits (Took like half an hour)

500 x 500 x 500 - 967,656 digits (Took several hours)

Feel free to share with me higher results i.e. 450 x 450 x 450 (You'll be mentioned here)!

Hello!

Because of Covid-19(The coronavirus), I have had lot more time to work on repl.it so I decided to make this fun code!

Did you know that a 3 x 3 x 3 Rubik's cube has over 43 Quintillion or 43 Million Trillion different positions?

Calculate how many different combinations, visualize the Rubik's cube, and learn how many digits the number is with this simple program!

InstructionsStatsHere are some of the results that I got for varying cube sizes!

Thanks!

Next up: How to

solvea rubik's cube lolHow is 1x1 not a valid input >:(

@Coder100 1x1 bugged out I'll add it in now

yay lol

70x70: 18747 digits

Quick question: Can you solve a Rubik's cube? I'm guessing you can :P

@bgrubert

@Coder100 I used to be able to - I forgot the ending now

ending?

like pll?

;(

~~100 x 100 x 100 : 38416 digits~~@bgrubert@Coder100 I used to know beginners method - not CFOP

0 is an invalid input ;(

and so is -1

;(

0 -> 0 permutations

-1 -> -1 permutations @bgrubert

@Coder100 Shouldn't 0 have 1 permutation - just nothingness

Edit: It works now

yay lol

then -1 should have 0

and -2 should have -1 @bgrubert

@Coder100 That doesn't make a lot of sense but it would make for a good easter egg

or

it could be random ascii

corrupted data! @bgrubert

@Coder100 yes

Like this

@bgrubert

@Coder100 I just used chance.js

~~What is that? ~~

EDIT: How dare you add flavor to the JavaScript without jquery @bgrubert

@Coder100 A js library

@bgrubert @Coder100's not wrong. jquery is nice. although i usually use vanilla js

:P @avibeskrowni