Skip to content

Magic cube (Rubik's cube) game implemented by Matlab

Notifications You must be signed in to change notification settings

lh9171338/MagicCube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Magic Cube

1. Introduction

This repository is a Magic cube (Rubik's cube) game implemented by Matlab.

2. Usage

2.1 Parameters

  • Order:

The order of the Rubik's cube. Range of the value: [2, 9].

  • Size:

The block size of the Rubik's cube. Range of the value: Positive number.

  • Draw3d:

Draw the Rubik's cube in 3D or 2D mode. Range of the value: True or false.

  • Iter:

Times to disrupt the Rubik's cube during initialization. Range of the value: Positive integer number.

2.2 Keyboard Control

  • 'W' / 'w':

Rotate front -> up -> back -> bottom.

  • 'S' / 's':

Rotate front -> bottom -> back -> up.

  • 'A' / 'a':

Rotate front -> left -> back -> right.

  • 'D' / 'd':

Rotate front -> right -> back -> left.

  • 'Q' / 'q':

Rotate top -> left -> bottom -> right.

  • 'E' / 'e':

Rotate top -> right -> bottom -> left.

  • '0':

Rotate all rows or columns.

  • '1':

Rotate 1th row or column.

...

  • 'N' (N = Order):

Rotate Nth row or column.

2.3 Run

Run MagicCube.m with Matlab.

3. Images

image
image
image

About

Magic cube (Rubik's cube) game implemented by Matlab

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages