Solve a Rubik's cube: Difference between revisions

Content added Content deleted
(added Raku programming solution)
m (→‎{{header|Wren}}: Changed to Wren S/H)
 
Line 2,092: Line 2,092:


Despite this, the script is taking an average of just over a second to calculate the number of moves for each line which is probably not too bad for an interpreted language.
Despite this, the script is taking an average of just over a second to calculate the number of moves for each line which is probably not too bad for an interpreted language.
<syntaxhighlight lang="ecmascript">/**********************************************************************
<syntaxhighlight lang="wren">/**********************************************************************
*
*
* A cube 'state' is an int array with 40 entries, the first 20
* A cube 'state' is an int array with 40 entries, the first 20