CMM2: Rubik's Cube game


Author Message
bar1010
Senior Member

Joined: 10/08/2020
Location: United States
Posts: 192
Posted: 02:39am 09 May 2021      

Rubik's Cube features a 3x3x3 cube that has tiles with six
different colors.  The object is to manipulate the tiles
such that each face has all of the nine tiles set to the
same color.  There are two different views available.


Rubik's Cube.zip




Edited 2021-05-09 12:51 by bar1010

jirsoft

Guru

Joined: 18/09/2020
Location: Czech Republic
Posts: 531
Posted: 07:16pm 09 May 2021      

Looks nice. Maybe can be extended with use of MMBasic's 3D commands (and be freely rotated)...

bar1010
Senior Member

Joined: 10/08/2020
Location: United States
Posts: 192
Posted: 09:34pm 09 May 2021      

  jirsoft said  Looks nice. Maybe can be extended with use of MMBasic's 3D commands (and be freely rotated)...


I started creating a version with the 3D commands.  My idea was to make 27 3D cubes.  However, I was running into an error when attempting to create a 7th 3D object (it would allow six). Documentation says as many as 128 3D objects can be created.
Had gone down the route of allowing for the face to be changed to one of the other five faces, but experienced difficulties.