home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / mirrors / pmlife.hlp (.txt) < prev    next >
OS/2 Help File  |  1993-01-18  |  21KB  |  425 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Help Index ΓòÉΓòÉΓòÉ
  3.  
  4. Help Index 
  5.  
  6.  
  7. General Information 
  8. Life's Rules 
  9. File 
  10. Import 
  11. Export 
  12. Edit 
  13. Copy 
  14. Cut 
  15. Paste 
  16. Move 
  17. Delete 
  18. Options 
  19. Clear 
  20. Dimensions 
  21. Toggle 
  22. Alive 
  23. Dead 
  24. Step 
  25. Start 
  26. Stop 
  27.  
  28.  
  29. ΓòÉΓòÉΓòÉ 2. General Information ΓòÉΓòÉΓòÉ
  30.  
  31. General Information 
  32.  
  33. The Life game was created by John Horton Conway.  Conway was a mathematician at 
  34. Gonville and Caius College of the University of Cambridge.  One of the first 
  35. publications of the rules for this algorithm was made in the Mathematical Games 
  36. feature of Scientific American some years ago. 
  37.  
  38. Written well before the era of personal computers, the Scientific American 
  39. article suggests using a checkerboard and checkers or poker chips to represent 
  40. the Life universe.  There have been some advances since then, but Life's rules 
  41. are still the same.  This present application is an elaborate adaptation of 
  42. Conway's idea. 
  43.  
  44. This adaptation of the Life game was written originally by Steve Emmons at 
  45. Micrografx.  Michael Harrison made substantial modifications.  David M. Wilson 
  46. enhanced the performance.  This on-line information was written by Derrel R. 
  47. Blain. 
  48.  
  49. For a complete description of how the Life game works see Life's Rules. 
  50.  
  51.  
  52. ΓòÉΓòÉΓòÉ 3. Life's Rules ΓòÉΓòÉΓòÉ
  53.  
  54. Life's Rules 
  55.  
  56. The Life universe, consists of a starting pattern of cell or organisms within a 
  57. framework of adjacent squares.  These cells are born, die, or survive for each 
  58. step or generation according to a set of simple rules. 
  59.  
  60. Conway's original rules, to which this application conforms, are as follows: 
  61.  
  62.     Survivals 
  63.  
  64.     Every cell with two or three neighboring cells survives until the next 
  65.     generation. 
  66.  
  67.     Deaths 
  68.  
  69.     Cells with four or more cells adjacent to them, in any single generation, 
  70.     die from overpopulation.  Every cell with one or fewer neighbors dies from 
  71.     isolation. 
  72.  
  73.     Births 
  74.  
  75.     Each empty cell which is next to exactly three neighbors will experience a 
  76.     birth in the next cycle. 
  77.  
  78.  
  79. How The Game Proceeds 
  80.  
  81. The game begins with an initial population or pattern which you create using 
  82. the mouse by clicking on cells in the Life universe.  At each step or 
  83. generation, all births and deaths within the Life universe occur simultaneously 
  84. according to the rules listed above.  The cycles or generations continue until 
  85. there is no change in the pattern. 
  86.  
  87.  
  88. Example 
  89.  
  90. In the example pattern below, you can see three succsesive generations of three 
  91. different cell groups. 
  92.  
  93.     First Generation 
  94.  
  95.     Our example begins with a pattern of three isolated groups of cells.  Each 
  96.     of the cells is colored red to signify that it is a new cell. 
  97.  
  98.  
  99.  
  100.     Second Generation 
  101.  
  102.     Notice the changes in this second generation.  Each of the cells that 
  103.     remain from the preceding generation are colored blue.  Cells that were 
  104.     born in this generation are colored red.  Two cells in the left group have 
  105.     died from isolation.  In the middle group, a new cell has been born.  In 
  106.     the right group two cells died and two others were born. 
  107.  
  108.  
  109.  
  110.     Third Generation 
  111.  
  112.     In this third generation, all the cells in the left hand group have 
  113.     expired.  The group in the middle has reached a stable condition and will 
  114.     remain in this state as long as the Life universe continues.  You can see 
  115.     that the cells at the right are now at the same state in which they were 
  116.     prior to this generation.  This particular pattern will continue to 
  117.     oscillate with a period of two steps for as long as the Life universe 
  118.     continues to cycle. 
  119.  
  120.  
  121.  
  122. Other Patterns 
  123.  
  124. The files distributed with this application include other examples of both 
  125. stable and oscillating patterns.  Some patterns oscillate with a long period of 
  126. several steps.  Others, named "Walkers" or "Gliders", actually move across the 
  127. Life universe by replicating and shifting themselves using several steps. 
  128.  
  129.  
  130. ΓòÉΓòÉΓòÉ 4. File ΓòÉΓòÉΓòÉ
  131.  
  132. File 
  133.  
  134.  
  135. The commands in this menu enable you to import and export patterns as files. 
  136. Export will write a cell pattern to disk.  Import will read a pattern file from 
  137. disk. 
  138.  
  139. The command available in this menu are : 
  140.  
  141. Import 
  142. Export 
  143.  
  144.  
  145. ΓòÉΓòÉΓòÉ 5. Import ΓòÉΓòÉΓòÉ
  146.  
  147. Import 
  148.  
  149. Use import to read a cell pattern file from disk. 
  150.  
  151. To Import a pattern: 
  152.  
  153. 1.  Select Import in the File menu. 
  154. 2.  Either select a pattern file name with the mouse or enter the valid name of 
  155. a pattern file in the dialog box. 
  156. 3.  Move the cursor to the upper left corner of the area in which you want the 
  157. imported pattern to be pasted. 
  158. 3.  Click the mouse button. 
  159.  
  160.  
  161. ΓòÉΓòÉΓòÉ 6. Export ΓòÉΓòÉΓòÉ
  162.  
  163. Export 
  164.  
  165. Use Export to save a portion of Life's cell pattern as a file. 
  166.  
  167. To Export a pattern to a file: 
  168.  
  169. 1.  Select Export. 
  170. 2.  Place the cursor at one corner of the area to be saved. 
  171. 3.  Click and drag the cursor to the opposite corner of the pattern area.  The 
  172. Life game will display a square around the selected area as you click and drag. 
  173. 4.  Release the mouse button. 
  174.  
  175.  
  176. ΓòÉΓòÉΓòÉ 7. Edit ΓòÉΓòÉΓòÉ
  177.  
  178. Edit 
  179.  
  180. The commands in this menu enable you to modify the displayed pattern.  Changes 
  181. may be made to the displayed pattern at any time when the Life universe is not 
  182. cycling though successive generations. 
  183.  
  184. They are: 
  185.  
  186. Copy 
  187. Cut 
  188. Paste 
  189. Move 
  190. Delete 
  191.  
  192.  
  193. ΓòÉΓòÉΓòÉ 8. Copy ΓòÉΓòÉΓòÉ
  194.  
  195. Copy 
  196.  
  197. Use Copy to copy an area of the displayed cell pattern to the Clipboard.  The 
  198. pattern on the display is not changed.  The cell pattern is saved to the in a 
  199. binary format intelligible only to the Life application.  You will not be able 
  200. to view the pattern in the Clipboard with another application. 
  201.  
  202. To Copy a pattern: 
  203.  
  204. 1.  Select Copy in the File menu. 
  205. 2.  Place the cursor at one corner of the pattern area to be copied.  This may 
  206. be only a portion of the complete Life universe displayed. 
  207. 3.  Click and drag the cursor to the opposite corner of the pattern area.  The 
  208. Life game will display a square around the selected area as you click and drag. 
  209. 4.  Release the mouse button. 
  210.  
  211.  
  212. ΓòÉΓòÉΓòÉ 9. Cut ΓòÉΓòÉΓòÉ
  213.  
  214. Cut 
  215.  
  216. Moves a pattern to the Clipboard, replacing the previous Clipboard contents. 
  217. The pattern on the display is removed. 
  218.  
  219. To Cut a pattern: 
  220.  
  221. 1.  Select Cut. 
  222. 2.  Place the cursor at one corner of the pattern area to be Cut. 
  223. 3.  Click and drag the cursor to the opposite corner of the pattern area.  The 
  224. Life game will display a square around the selected area as you click and drag. 
  225. 4.  Release the mouse button. 
  226.  
  227.  
  228. ΓòÉΓòÉΓòÉ 10. Paste ΓòÉΓòÉΓòÉ
  229.  
  230. Paste 
  231.  
  232. Inserts the pattern from the Clipboard at the cursor.  A pattern must have been 
  233. cut or copied to the Clipboard previously. 
  234.  
  235. To paste a pattern from the Clipboard: 
  236.  
  237. 1.  Select Paste from the Edit menu. 
  238. 2.  Place the cursor in the Life universe where the upper left corner of the 
  239. pasted pattern should begin. 
  240. 3.  Click the mouse. 
  241.  
  242. How the cells from the Clipboard are pasted into the displayed pattern depends 
  243. on the options Toggle, Alive, and Dead. 
  244.  
  245. If Toggle is currently selected, then any place where one cell would be pasted 
  246. over another, the cell is dead after the paste.  Any place where only one cell 
  247. is pasted, the cell remains alive.  Dead cells are not changed. 
  248.  
  249. If Alive is currently selected, then any place where a cell is to be pasted is 
  250. marked as alive.  Alive cells from  the previous pattern are not changed. 
  251.  
  252. If Dead is currently selected, any place where one cell is pasted over another 
  253. is marked as dead.  Other cells are not changed.  No new cells are made alive. 
  254.  
  255.  
  256. ΓòÉΓòÉΓòÉ 11. Move ΓòÉΓòÉΓòÉ
  257.  
  258. Move 
  259.  
  260. Move enables you to select a portion of the displayed to be moved within the 
  261. display.  The moved pattern is also copied to the Clipboard. 
  262.  
  263. To Move a pattern: 
  264.  
  265. 1.  Select Move from the Edit menu. 
  266. 2.  Place the cursor at one corner of the area to be moved. 
  267. 3.  Click and drag to the opposite corner of the pattern to be moved. 
  268. 4.  Release the mouse button. 
  269. 5.  Move the cursor inside the box bounding the selected area. 
  270. 5.  Click and drag the box to the area where the moved pattern should be 
  271. pasted. 
  272. 6.  Release the mouse button. 
  273.  
  274.  
  275. ΓòÉΓòÉΓòÉ 12. Delete ΓòÉΓòÉΓòÉ
  276.  
  277. Delete 
  278.  
  279. Deletes a portion of the displayed pattern.  The contents of the Clipboard are 
  280. not changed. 
  281.  
  282. To Delete a pattern: 
  283.  
  284. 1.  Select Delete from the Edit menu. 
  285. 2.  Place the cursor at one corner of the pattern area to be deleted. 
  286. 3.  Click and drag the cursor to the opposite corner of the pattern area.  The 
  287. Life game will display a square around the selected area as you click and drag. 
  288. 4.  Release the mouse button. 
  289.  
  290.  
  291. ΓòÉΓòÉΓòÉ 13. Options ΓòÉΓòÉΓòÉ
  292.  
  293. Options 
  294.  
  295. The menu selection available under the Options menu enable you to customize 
  296. some of the operations of the Life game. 
  297.  
  298. Clear 
  299. Dimensions 
  300. Toggle 
  301. Alive 
  302. Dead 
  303.  
  304.  
  305. ΓòÉΓòÉΓòÉ 14. Clear ΓòÉΓòÉΓòÉ
  306.  
  307. Clear 
  308.  
  309. Use Clear to eliminate all living cells from the displayed pattern. 
  310.  
  311.  
  312. ΓòÉΓòÉΓòÉ 15. Dimensions ΓòÉΓòÉΓòÉ
  313.  
  314. Dimensions 
  315.  
  316. Use Dimensions to change the size of the Life universe. 
  317.  
  318. To use Dimensions: 
  319.  
  320. 1.  Select Dimensions in the Options Menu. 
  321. 2.  Enter a new number for the horizontal cells. 
  322. 3.  Enter a new number for the vertical cells. 
  323. 4.  Select OK or Cancel 
  324.  
  325. If there are any living cells in the Life universe before the dimensions are 
  326. changed, these will be eliminated. 
  327.  
  328.  
  329. ΓòÉΓòÉΓòÉ 16. Toggle ΓòÉΓòÉΓòÉ
  330.  
  331. Toggle 
  332.  
  333. Use the Toggle option to change the manner in which cells clicked on with the 
  334. mouse behave.  If the Toggle option is selected, clicking on a living cell will 
  335. cause it to die and clicking on a dead cell will cause it to be marked as 
  336. alive. 
  337.  
  338.  
  339. ΓòÉΓòÉΓòÉ 17. Alive ΓòÉΓòÉΓòÉ
  340.  
  341.  
  342.  Alive 
  343.  
  344. Use the Alive option to change the manner in which cells selected with the 
  345. mouse behave.  If the Alive option is selected, clicking on any cell, living or 
  346. dead, will cause that cell to be marked as alive. 
  347.  
  348.  
  349. ΓòÉΓòÉΓòÉ 18. Dead ΓòÉΓòÉΓòÉ
  350.  
  351. Dead 
  352.  
  353. Use the Dead option to change the manner in which cells selected with the mouse 
  354. behave.  If the Dead option is selected, clicking on any cell, living or dead, 
  355. will cause that cell to be marked as dead. 
  356.  
  357.  
  358.  
  359. ΓòÉΓòÉΓòÉ 19. Step ΓòÉΓòÉΓòÉ
  360.  
  361. Step 
  362.  
  363. Use Step to cause one cycle or generation of the Life universe. 
  364.  
  365.  
  366. ΓòÉΓòÉΓòÉ 20. Start ΓòÉΓòÉΓòÉ
  367.  
  368. Start 
  369.  
  370. Use Start to cause the Life universe to cycle through successive generations 
  371. automatically. 
  372.  
  373.  
  374. ΓòÉΓòÉΓòÉ 21. Stop ΓòÉΓòÉΓòÉ
  375.  
  376. Stop 
  377.  
  378. Use Stop to cause the Life universe to discontinue its generation. 
  379.  
  380.  
  381. ΓòÉΓòÉΓòÉ 22. Click and Drag ΓòÉΓòÉΓòÉ
  382.  
  383. Click and Drag 
  384.  
  385.  
  386. To Click and Drag means to place the cursor at some beginning position, hold 
  387. down a mouse button (usually the left button), then move the cursor to a new 
  388. position while holding the mouse button down. 
  389.  
  390.  
  391. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  392.  
  393. Cell 
  394.  
  395.  
  396. A cell is one of the spaces within the life universe.  Cells may be either 
  397. alive or dead.  Dead cells are not displayed. 
  398.  
  399.  
  400. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  401.  
  402. Clipboard 
  403.  
  404.  
  405. The Clipboard is a temporary storage area. 
  406.  
  407.  
  408. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  409.  
  410. Pattern 
  411.  
  412.  
  413. A pattern is a collection of living cells. 
  414.  
  415.  
  416. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  417.  
  418. Generation 
  419.  
  420.  
  421. A generation or step occurs when all the rules for birth, life, and death are 
  422. applied to all cells within the Life universe simultaneously. 
  423.  
  424.  
  425.