home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
333.lha
/
Rubik
/
ReadMe.rub
< prev
next >
Wrap
Text File
|
1989-12-09
|
2KB
|
62 lines
020 versions are for 68020/68030 systems
This is a C translation of a Rubiks Cube Solve program originally
in Basic. This version is Much Faster.
Original is By John Murphy for the NorthStart DOS 5.0 computer
Enhancements and C/Amiga Translation By
W. Roger Uzun
Rubik just solves the cube and displays it "unwrapped" in 2D fashion
Rubik3D shows the Cube in 3D space.
Rubik3D is much neater graphically than Rubik,
but Rubik is much faster at solving the cube!
For the Rubik Program one sets up the cube using the Mouse
to click and exchange Blocks. Click on one block, then move
the pointer to the block you want to exchange it with and
Click on it.
For the Rubik3D program you set up the Cube initially by putting
the colors of each block in a file Called InitCube, see the
enclosed example. (pretty self explanatory) InitCube must
be in the current default directory.
NOTE : Many initial setups are unsolvable...
If the computer is in an infinite loop or you wish to interrupt it
for any reason just press the left mouse button while pointer is over
the cube.
When you ask the computer to solve a cube you can optionally specify
a file to write the solution steps to.
The solution is written with the following symbols
r - Rotate the right edge of the cube Clockwise
l - rotate the left edge of the cube clockwise
b - rotate the back side of the cube clockwise
f - rotate the front side of the cube clockwise
d - rotate the bottom side of the cube clockwise
u - rotate the top side of the cube clockwise
c - rotate the ENTIRE cube about its vertical axis
h - rotate the ENTIRE cube about its horizontal axis
' - opposite of normal e.g. r' means rotate right edge of cube CounterClockwise)
this is just like doing 3 moves in the "normal" direction
that is c' is the same as ccc and d' is the same as ddd
Note any 4 moves in the same direction is a net no change so
cccc does nothing c'c does nothing rrrr does nothing etc.
Look at the 3D model to get an idea what these moves mean.
You can execute any of these moves manually on the cube through
the Mouse interface menus.
Well just have a ball solving cubes and looking at 3D Rubiks!
Roger Uzun!