4.28571

4.3 | 7 ratings Rate this file 30 downloads (last 30 days) File Size: 7.11 KB File ID: #4210

Rubik Cube Game

by Sergii Iglin

 

03 Dec 2003 (Updated 26 Aug 2004)

Code covered by BSD License  

Task: to solve Rubik's Cube.

Download Now | Watch this File

File Information
Description

Rubik Cube Game - MATLAB toy.
File list:
ChangePointer.m - function for change of mouse pointer
Congr.m - function for creation figure with congratulation
CreateNewGame.m - function for creation of new game
InitCube.m - function for initialization of Cube object
PlotCube.m - function for drawing of the cube
RotateCube.m - function for rotation of the cube
RotateLayer.m - function for rotation of the layer
RotateWithMouse.m - function for all rotations with mouse
Rubik.m - main file.

Acknowledgements
This submission has inspired the following:
flatRubiks, Mathworks Rubik
Required Products Statistics Toolbox
MATLAB release MATLAB 6.5 (R13)
Other requirements PC platform
Zip File Content  
Other Files Rubik/Rubik.m,
Rubik/InitCube.m,
Rubik/PlotCube.m,
Rubik/RotateCube.m,
Rubik/RotateLayer.m,
Rubik/CreateNewGame.m,
Rubik/ChangePointer.m,
Rubik/RotateWithMouse.m,
Rubik/Congr.m,
Rubik/readme.txt
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (7)
29 May 2004 Jack Bauer

Nice piece of work! you can improve the graphics adding ligths.

02 Sep 2004 AJ Johnson

Neat implementation... was not able to spin the middle planes, without rotating the entire cube.
Also, the function UNIDRND was missing, so I wrote one:
function r=unidrnd(range,varargin)
% r=unidrnd(range,m,n) - uniform discrete random number generator, 1 to RANGE
r=ceil(rand(varargin{:})*range);

16 Dec 2004 mer rin  
04 Sep 2005 JAIME VILLALOBOS  
27 Jan 2006 Kirill Tkachenko  
12 Nov 2006 Lipatov Vladimir  
09 Sep 2008 xx yy  
Please login to add a comment or rating.
Updates
26 Aug 2004

The new e-mail is added.

Tag Activity for this File
Tag Applied By Date/Time
games Sergii Iglin 22 Oct 2008 07:10:06
rubik cube game Sergii Iglin 22 Oct 2008 07:10:06
solve Sergii Iglin 22 Oct 2008 07:10:06
matlab toy Sergii Iglin 22 Oct 2008 07:10:06
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com