home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 138.lha / Cycle / ReadMe? < prev    next >
Text File  |  1986-11-20  |  4KB  |  89 lines

  1. Submitted for your approval...
  2.  
  3.   In the April issue of Amiga Transactor, Rico Mariani set in motion a
  4. contest for Amiga programmers. The purpose of the contest is to design an
  5. algorith for a Tron-like 'light cycle' (with a third less calories than a
  6. regular cycle) that will compete (and hopefully beat) cycle algorithms sent
  7. in by other programmers. The cycles compete within a program called "cycle"
  8. which sets up a screen sized arena, places the cycles in random positions
  9. in the arena, and sets them loose. Unfortunately, the program itself is
  10. five plus pages of code and therefore, to save typing for others and to
  11. generate more interest in the competion (thereby decreasing my chances of
  12. winning, smart move eh?) I am uploading these painstakingly entered pieces
  13. of source code.
  14.   The information provided here, though extremely useful, will not substitute
  15. for the article in the Amiga Transactor. Look there for rules, function
  16. descriptions, and general information about the program.
  17.   The source code is a completely accurate transcription of the listings in
  18. the article, EXCEPT that I changed all references to "int" into "long" for
  19. reasons too technical to explain AND corrected some obvious TAB induced
  20. typos in the include file 'cycles.h'.
  21.   Some discrepancies I have noticed in the article are the references to the
  22. programs ability to handle six cycles at a time whereas the program itself
  23. can clearly handle only five.
  24.  
  25.   Included are:
  26.     The modules for the cycle game; cycles.c dobikes.c time.c graphic.c
  27.  
  28.     The source and object code to make the cycles; play.(c|o) manager.(c|o)
  29.  
  30.     A very simple shell to begin makeing your own cycle; shell.c
  31.  
  32.     Eight premade cycles; MrRight Dizzy Vertigo Round Flying NotsoDizzy
  33.                           LookB4 Joystick
  34.       note: Flying and LookB4 only had descriptions in the article of
  35.             algorith changes from comparable programs. I made the changes
  36.             myself to reflect these descriptions yet take no responsibility
  37.             for their performance.
  38.  
  39.   If any bugs are reported or have somehow, impossibly, been typed into the
  40. source code, the program 'cycle' can be rebuilt with the following commands:
  41.    (with Manx Aztec C)
  42.  
  43.    cc cycles.c +L
  44.    cc dobikes.c +L
  45.    cc graphic.c +L
  46.    cc time.c +L
  47.    ln -o cycle cycles.o dobikes.o graphic.o time.o -lc32
  48.  
  49.  Note: All compiles use the 32bit integer option +L.
  50.        "c32.lib" can be found in SYS2:lib/ .
  51.  
  52.   It is not neccessary to write the cycle algorithm in C. However, to link
  53. your cycle program in C you use the following commands:
  54.    (again with Manx Aztec C)
  55.  
  56.    cc yourbike.c +L
  57.    ln yourbike.o manager.o play.o -lc32
  58.  
  59.   In my opinion, this program is far from bug proof. You are likely to see
  60. the Guru once in a while if you don't run the program within its limits.
  61. (ie. setting the number of players more than 5 or getting too wild with
  62. bringing in new cycles while the program is running) Make very sure to turn
  63. the individual cycle algorithm programs off after each tournament or you will
  64. run out of memory reeeeeal fast.
  65.   If anyone knows of corrections made to this program by Amgia Transactor,
  66. please let the rest of us know. I, personally, will look for all references
  67. to the word 'cycle' in the Amiga forums message bases.
  68.   I hope you all have a lot of fun with this!
  69.      -Mike [76046,1057]
  70.  
  71.  
  72. P.S.
  73.   A correction was given to me which I have had trouble making work. I
  74. include it merely for completeness.
  75.    ( in 'cycles.c')
  76.  
  77.     if (num_alive) {
  78.       move_cycles(&cycle_list);
  79.       Timer_Post(tr,
  80.             TIME * num_alive / 1000,            /* seconds */
  81.             ((num_alive * TIME) % 1000) * 1000  /* micros   */
  82.             );
  83.      }
  84.      continue;
  85.  
  86.   This correction was supposedly in Amiga Transactor #2. It causes my
  87. program to freeze up the instant all the players are registered. My theory
  88. is that there is more to this correction than the code listed. Let me know!!
  89.