home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 381.lha / CUBE / CUBE.README < prev    next >
Encoding:
Text File  |  1990-06-04  |  5.4 KB  |  108 lines

  1.  
  2. /***************************************************************************
  3.  
  4.                           USELESS INFORMATION:
  5.  
  6.  
  7.     This program was originally written under (shudder) Metacomco's ABasic,
  8. at least until the message "Too many FOR loops" was obtained. When
  9. Microsoft's Basic became available, the program was converted and
  10. completed. It is now in compiled form, thanks to ABSOFT. It was an early
  11. attempt (1985) to use some of the Amiga's features. No apologies are offered
  12. for its lack of sophistication. (After all, it is free.) It will perform a
  13. useful function, namely unscrambling a real world (physical) cube. The cube
  14. is manipulated in 3-Space by simply changing color registers. The cube is
  15. actually drawn only once. This method was chosen because of the blinding
  16. speed (you can't see any) of ABasic.
  17.  
  18.  
  19. /***************************************************************************
  20.  
  21.                           USEFUL INFORMATION:
  22.  
  23.     Contrary to what the program says on startup, it is NOT shareware. The
  24. requested fee of $0.02 (two cents U.S.) is hereby waived. You are free to do
  25. anything you like with it. Source code is available free upon request to
  26. anyone foolish enough to want to look at it.
  27.  
  28.     This program solves Rubik's cube. To solve a cube, paint it to look like
  29. your scrambled cube then use the SV command. The program will respond with
  30. a series of instructions that, when followed correctly, will restore your
  31. cube to the pristine (unscrambled) state. The faces are labeled up (U) for
  32. top, down (D) for bottom, left (L) for left, right (R) for right, front (F)
  33. for front, and back (B) for back. A command such as R rotates that face
  34. clockwise AS YOU FACE THAT FACE. Prime commands such as L' rotate that face
  35. counterclockwise. '2' commands such as F2 rotate that face 180 degrees.
  36. Slice commands (RS) rotate that face clockwise AND the opposite face CCW.
  37. '3' commands rotate a face AND the opposite face 180 degrees.
  38.  
  39.     There are also commands which apply to the cube as a whole, and not just
  40. a face(s). These are:
  41.  X('2) which rotates the cube on the x axis. The right face moves CW.
  42.  Y('2) which rotates the cube on the y axis. The up (top) face moves CW.
  43.  Z('2) which rotates the cube on the z axis. The front face moves CW.
  44. Of course prime (') suffix commands cause CCW rotation, while 2 suffix
  45. commands cause 180 degree rotation. Remember, CW and CCW apply as you face
  46. the face. (intentional). If you are not familiar with this notation (David
  47. Singmaster's) play around with the commands until you are before you try
  48. to solve a cube.
  49.  
  50.     A list of commands may be had by typing LC at the enter command prompt.
  51.  
  52.     To paint the cube, use the menu to select the color you want, point to
  53. the appropriate facelet and click the left mouse button. The easiest way
  54. is to paint the three visible faces, then use the ORIENT menu commands to
  55. X2 followed by Y to bring the other three faces into view.
  56.  
  57.     If you paint an illegal cube, the program may refuse to solve it. In any
  58. case, it will never FINISH solving it. It will let you know when you exit 
  59. the paint (NC) routine if you have a bad cube. The program not only verifies
  60. that the center colors are unique, and that there are 9 facelets of each
  61. color, but it also performs parity checks to ascertain that the cube can be
  62. restored to the pristine state. Therefore, you cannot force the program
  63. into an endless loop.
  64.  
  65.     So, if you have disassembled and done unseemly things to your cube, this
  66. program will not solve your cube. However, if you have inadvertently
  67. scrambled such a cube, you can partially solve it to where you can
  68. disassemble and correct the defugalties. Do this by solving the first 2
  69. layers, save the cube, and save again after each step in the top layer
  70. procedures. You exit solve by hitting the esc key, save to a memory, then
  71. solve again.
  72.  
  73.     When solving the first layer, the program will (sometimes) reorient the
  74. cube without a specific command. This was done to save time and because the
  75. sequences are short and simple, but mainly because the programmer was lazy.
  76. Also, you may notice that the program somtimes issues command strings such
  77. as y2,y instead of y'. This is because the programmer did not bother to
  78. check and streamline the command stream before issuing it. However, all
  79. sequences are correct. Always verify by the 3 visible center colors that
  80. you have the cube oriented correctly.
  81.  
  82.     There are 10 memories numbered 0-9 that you can use to save and restore
  83. cubes with the commands CM (current to memory) and MC (memory to current)
  84. respectively.
  85.  
  86.     The NU (not used) command is in fact used to do a little graphic thingy
  87. with the cube. Pressing the select button moves from one display to the next.
  88.  
  89.     The program uses the colors of my cube, but you may set your own with
  90. the EC (edit colors) command. 
  91.  
  92.     When started, the program places you in the NC (new cube) command where
  93. you can paint the cube to look like your scrambled one. If you need to change
  94. colors, you can either exit and edit colors or go ahead and paint the cube
  95. and then change the colors.
  96.  
  97.     The algorithm used is Don Taylor's. For more info on the cube, see
  98. March 1981 Scientific American.
  99.  
  100.     There are a couple of other commands that you can explore on your own.
  101. If you get stuck somewhere, use the ESC key or the left mouse button. One or
  102. the other should get you back into command mode. Have fun!
  103.  
  104.  
  105.                                 JLM
  106.  
  107. ***************************************************************************/
  108.