Rubiks Cube - Play rubiks cube in 3D

Short description

Play rubiks cube in 3D :smiley:

Picture of all the blocks

Docs

![|64x64](upload://cZs6WscT191mYVEU7cTNTo4g19p.png) Rubiks Cube | Free

A extension to generate a 3d figure of rubiks cube with lots of customizations and methods.

πŸ“¦ 34.35 KB
πŸ“ com.aktech.rubikscube.RubiksCube

Properties

SetDoubleRotationSpeed number Sets the rotation speed of a double rotation. This property allows to customize the speed of face turns separately from quarter turns.
SetFaceletsBorderColor number Sets border color of the facelets in rubik cube.
SetBackFacesDistance number Sets back faces distance from the cube. Typically, a value smaller than 2 means they won't be visible.
SetSingleRotationSpeed number Sets the rotation speed of a single rotation. This porperty allows to customize the speed of quarter turn separately from face turns.
SetBackgroundColor number Sets background colors of the rubik cube view.
SetEditable boolean Sets if rubiks cube can be changed by user or not.
SetCubeColors list Sets the list of colors given.

Blocks

StopAnimation

Stops an in-progress animation. No operation if an animation is not in progress.

![](upload://xNUMr0w6MKk69n4QcSy8mgby48i.png)

AnimateMoveReversed

Animates in reverse (i.e. with opposite twisting direction) only the previous move from the move sequence. When it has completed, the next one is not automatically started.

![](upload://3gq24ElEQiXRGYf1KUVzi7l1Q1J.png)

AnimateMove

Animates only the next move from the move sequence. When it has completed, the next one is not automatically started.

![](upload://u2HOB0MIvoidET49zrPR76qB1y3.png)

ApplyMove

Instantly applies the next move on the cube, without animation.

![](upload://qve4Wb2JAqdrXCqD1LtuEc7dEmz.png)

ApplyMoveSequenceReversed

Instantly applies the whole move sequence in reverse, on the cube, without animation.

![](upload://c9aakktqTRY1S1TUm3XFK9yf1IW.png)

SetMoveSequence

Sets the move sequence. Note you still have to use one of the blocks starting with animate.

![](upload://paU88V9syFdJkemOvyKssMVfurR.png)
sequence text

AnimateMoveSequenceReversed

Animates all the moves in the currently set move sequence one move at a time, in reverse (i.e. from end to start with opposite twisting direction).

![](upload://aaePt7EROsOedz1WFmvIO4qNci3.png)

ApplyMoveSequence

Instantly applies the whole move sequence on the cube, without animation.

![](upload://xrLPRoTxFy6j4CwW77i0G7OjnuH.png)

GenerateRandomMoves

Generates random move sequence according to numOfMoves param to be used in SetMoveSequence.

![](upload://8BAZGUYH8gE6sUnAGzXtBmH6rbE.png)

returnType : text

numOfMoves number

ResetToInitialState

Resets the cube to solved position. Note : this does not include animation.

![](upload://gCM8vFggFtOfNnGT3EGrKtfSTBX.png)

RestoreCube

Restores a cube with string representation generated by the save cube block.

![](upload://6Gg6dhZNHFtVjpY5hBURrvVwaSy.png)
string text

RefreshWithNewProperties

Refreshes the rubiks cube with new properties set.

![](upload://DFgRLTUD8opONpb64LeOESWTji.png)

AnimateMoveSequence

Animates all the moves in the currently set move sequence one move at a time. When a move has completed, the next one is automatically started.

![](upload://3gB7C06k9S0ywf19NsLBDRseT5J.png)

ApplyMoveReversed

Instantly applies the previous move on reverse, on the cube, without animation.

![](upload://u88ax9mo6vMmSt0oLet4xjKmpOJ.png)

SaveCube

Returns a string representation of this cube that can be restored any time by using restore cube block.

![](upload://lh7u32K5dAwHaHsQah8ihg15vAN.png)

returnType : text

IsSolved

Generates random move sequence according to numOfMoves param to be used in SetMoveSequence.

![](upload://ukgjGpfCdhi58LomKRkbS8TDCY3.png)

returnType : boolean

SetupRubiksCube

Sets up Rubiks cube in a layout with porperties set.

![](upload://6tOXFIRsVm9jkdg5S5lddbxkPU2.png)
layout component

CubeSolved

Triggers when the whole cube is solved.

![](upload://87y2du3QVEYc2GYGzUpyxZgLqOK.png)

CubeChanged

Triggers when the cube model is changed.

![](upload://C8wOzZBtjT7IWtriD7Wu34APxo.png)

πŸ‘‡πŸ½ Download Extension

Instructions to use extension

Note if you change any property of extension except editable property then use refresh block
For the set Move Sequence block you can set algorithm using - Rubik's Cube Algorithms - Ruwix

Download link

com.aktech.rubikscube.aix (34.4 KB)

2nd download link - https://getaix.com/extension/rubikscube

Demo Blocks

Output

Aia -
rubiks.aia (37.8 KB)

Apk -
rubiks.apk (5.2 MB)

Credits

This extension is made on AnimCube library by Catalin Jurjiu.

Made with Rush
Thank you

36 Likes

2 Minute Silence :zipper_mouth_face: for such an Awesome Performance :heart:

:kodular:eep :kodular:oding …!
:wink:

4 Likes

Thanks for your comment @Technical_Zone :smiley:

1 Like

ur most welcome, btw, How did you made it? Did you used some api or webview something? :thinking:

3 Likes

It is made with a lib but honestly i had to change lots of code of the lib to integrate it as a extension and no webview or api it is made with surfaceview class of android :wink:

2 Likes

Mind Blowing @luv.ak.tech
It’s awesome :wink::wink:

2 Likes

Thank you @ilovecoding :smiley:

1 Like

It’s out of imagination :joy:

2 Likes

awesome extension :clap: :+1:

3 Likes

add some events like when cube complete or anything like that to record the movement.
Lovely Extension

2 Likes

Amazing extension.

2 Likes

Thank you @Shreyaa @Balajidev @AJOY_DAS

i will see if i can make any :sweat_smile:

2 Likes

WoW br0.:scream: :scream: :scream: :scream: :scream: :scream:

1 Like

Currently out of likes to like your comment :smiley: thanks for comment

2 Likes

Amazing Extension :slightly_smiling_face:

2 Likes

Thank you @Anu10

1 Like

epic work @luv.ak.tech keep it up :+1:

2 Likes

Thanks @Yashsehgal022

2 Likes

New Blocks added to move cube through blocks -
image
and docs are on first post

5 Likes

outstanding work :boom: :boom:

2 Likes