home *** CD-ROM | disk | FTP | other *** search
/ World of Graphics / WOGRAPH.BIN / 700.TURMITE.DOC < prev    next >
Text File  |  1992-06-22  |  8KB  |  183 lines

  1.                                   Turmite
  2.                      The Two-Dimensional Turing Machine
  3.  
  4. Copyright (C) 1992 Steve Iltis, All Rights Reserved
  5.  
  6.  
  7.  
  8.                              Table of Contents
  9. Introduction
  10. System requirements
  11. Turmite operation
  12. Options
  13. Distribution rules
  14. How to contact the author
  15. Acknowledgements
  16. Disclaimer
  17. Frequently asked questions
  18.  
  19.  
  20.  
  21.                                 Introduction
  22. Turmite is a project that I started work on more than two years ago, but then I
  23. got too busy to add all the neat features I thought it should have.  This
  24. program is not originally mine; it was inspired by a Computer Recreations
  25. article in the September 1989 issue of Scientific American entitled "Turing
  26. machines and tur-mites make tracks on a plane".  I have added some features
  27. that I find interesting, especially the ability to load .GIF pictures, then set
  28. the turmite free on the picture, allowing it to eat, destroy, or encode the
  29. picture (depending on your point of view).
  30.  
  31.  
  32.  
  33.                             System requirements
  34. IBM compatible with 275K free
  35. MS-DOS 3.3 or higher or DR-DOS 5.0 or higher
  36. VGA or SVGA card and monitor
  37.  
  38. WARNING: DO NOT USE TURMITE ON ANY MONITOR OTHER THAN VGA OR SVGA.  USE OF THIS
  39. PROGRAM ON OTHER VIDEO CARDS AND MONITORS MAY HAVE UNPREDICTABLE RESULTS.  IF
  40. YOU ARE UNSURE OF THE TYPE OF MONITOR YOU HAVE, DO NOT USE THIS PROGRAM.
  41.  
  42. Turmite will actually run with much less than 275K free, but loading .GIFs
  43. requires that you have about 275K or more free memory.  This might vary from
  44. computer to computer, depending on the speed of the computer and the speed of
  45. the video card, as Turmite uses this memory for buffering as it loads the
  46. pictures from disk to video memory.  If there is not enough memory, the picture
  47. will load, but it will be slightly garbled.
  48.  
  49. Turmite was developed using the following hardware and software:
  50. GEO 386/25
  51. Trident 8900 1MB video card
  52. SVGA monitor
  53. DR DOS 6.0
  54. QEMM 6.02 (leaving 600K free)
  55. Borland C++ 2.0
  56. Gif Library version 1.2 by Gershon Elber
  57. SVGA BGI version 3.1 by Jordan Hargrave
  58.  
  59.  
  60.  
  61.                               Turmite Operation
  62. When Turmite is run, it will first ask you to input the number of colors to use
  63. and the video mode to use.  Valid values for the number of colors range from 2
  64. to 256, inclusive.  Turmite will offer video modes of size 320x200, 640x400,
  65. 640x480, 800x600, and 1024x768.  (Of course, you can only use the ones your
  66. video card accepts.)  Once these values are accepted, Turmite starts
  67. to do its thing.  What it actually does is increase or decrease the color of
  68. the current pixel according to certain rules, then goes on to the next pixel.
  69. The turmite will turn either to the right or to the left when advancing to the
  70. next pixel; this also depends on the color of the current pixel.  [Press the
  71. spacebar to pause the Turmite in action; hold down the spacebar for slow
  72. motion.]  My favorite defaults for the values are 16 colors in 320x200 mode.  I
  73. use 320x200 mode since the pixels are bigger, which makes the action easier to
  74. watch.  I use only 16 colors since it takes much longer for the Turmite to draw
  75. a picture with 256 colors, since it has to cycle through all 256 colors before
  76. it can grow.
  77.  
  78. After playing with Turmite for a while, you might notice a relationship between
  79. the number of colors and the pattern Turmite follows.  Here are my
  80. observations:
  81.         1) With a number of colors that is even, but not divisible by 4 (i.e.
  82. 2, 6, 10, 14, ... 254) the turmite will trail off in either the forward or
  83. backward direction.
  84.         2) With a number of colors one less than a number divisible by 4 (i.e.
  85. 3, 7, 11, 15, ... 255) the turmite will trail off in the forward direction, and
  86. just grow garbage in the backward direction.
  87.         3) With a number of colors divisible by 4 (i.e. 4, 8, 12, 16, ... 256)
  88. the Turmite generates a pattern symmetrical along the vertical at the center of
  89. the screen.
  90.         4) With a number of colors one more than a number divisible by 4 (i.e.
  91. 5, 9, 13, 17, ... 253) the turmite will just grow garbage in the forward
  92. direction, and in the backward direction will eventually trail off.
  93.  
  94. Note that the Turmite wraps around to the other side of the screen when it
  95. reaches the edge of the screen.
  96.  
  97.  
  98.  
  99.                                   Options
  100. Once the turmite has started to do its thing, the following keys are used to
  101. change what the turmite is doing:
  102. +         makes the turmite move in the forward direction, the default.
  103. -         makes the turmite move in the backward direction, retracing its steps.
  104.           When the turmite returns to the original picture (the blank screen),
  105.           it will pause.  To continue in the backward direction, press '-'
  106.           again, or press '+' to continue in the forward direction.
  107. r         reverses the direction of the turmite.  If the turmite is moving
  108.           forward, 'r' makes it move backward, and visa versa.
  109. spacebar  pauses the turmite.  Press the '+' or '-' key to continue in the
  110.           appropriate direction.  If you are not sure the direction it was
  111.           going, press 'r' twice.  Also, hold down the spacebar for slow
  112.           motion turmite.
  113. l         load picture.  When it asks for a filename, include the full path,
  114.           i.e. c:\pics\porsche.gif.  Turmite is able to read .GIFs of most
  115.           sizes, but will not correctly read a .GIF if it has been modified by
  116.           GIFLITE, a program that compresses .GIFs.
  117. Esc       exits the program.
  118.  
  119.  
  120.  
  121.                               Distribution Rules
  122. This program is distributed as freeware, which means that I do not demand
  123. payment for the use of this program, but I do retain my intellectual property
  124. rights.  Turmite may be freely copied and distributed but may not be sold.
  125.  
  126.  
  127.  
  128.                            How to contact the author
  129.                             Steve Iltis
  130. School address:             Internet address:             Permanent address:
  131. Lovett College              iltiss@owlnet.rice.edu        1119 Curlew
  132. P.O. Box 2671                                             San Antonio, TX 78213
  133. Houston, TX 77252                                         (512) 349-2342
  134. (713) 630-8590
  135.      During the months of September through April I may be reached via
  136.      Internet or my school address.  During May through August I may be
  137.      reached at my permanent address, and possibly through Internet.
  138.  
  139.  
  140.  
  141.                                Acknowledgements
  142. Thanks go out to the authors of the following programs:
  143.  
  144. program:     SVGABG31.ZIP
  145. description: SVGA BGI video drivers
  146. author:      Jordan Hargrave
  147. Internet:    jh5y@andrew.cmu.edu
  148. address:     1000 Morewood Ave, Box #3277
  149.              Pittsburgh, PA 15213
  150.              (412) 268-4493
  151.  
  152. program:     GIFLIB12.ZIP
  153. description: C source libraries used to load and save .GIFs
  154. author:      Gershon Elber
  155. Internet:    gershon@cs.utah.edu
  156.  
  157.  
  158.  
  159.                                  Disclaimer
  160. The author is not responsible for any damage done to computer or the computer
  161. user while using Turmite.
  162.  
  163.  
  164.  
  165.                            Frequently asked questions
  166. Q1) The program will not run. I keep getting the message:
  167. BGI Error: Graphics not initialized (use 'initgraph')
  168. A1) Make sure that the file SVGA256.BGI is in the current directory when
  169. running Turmite.  This is not the only reason for this error (sometimes it
  170. occurs randomly), but it is the most common reason for this error.
  171.  
  172. Q2) Why can't I load pictures more than 2048 pixels high?
  173. A2) Actually, this is an arbitrarily set limit.  [I figure most people will
  174. never need to load a picture this size.]  Without this limit, GIFs modified by
  175. GIFLITE would cause the computer to lock up, since GIFLITE changes the height
  176. to something like 21504 pixels.
  177.  
  178. Q3) Why does the computer lock up or give a 'BGI Error' when loading a second
  179. picture?
  180. A3) I am working to fix this.  Temporary solution: load a picture and let the
  181. turmite go to work; when you want to load a new picture, exit first, run the
  182. program again, then load another picture.
  183.