home *** CD-ROM | disk | FTP | other *** search
/ Kids Cube / 4_History.iso / maze / maze.doc next >
Text File  |  1988-07-07  |  2KB  |  42 lines

  1. This source code for this maze program was downloaded from a bbs.  Since
  2. it was written for Turbo-C 1.5, and since everyone does not have Turbo-C
  3. 1.5 (though they really should), I thought that I would compile it and
  4. re-up it.
  5.  
  6. After compiling it, I noticed that the video interface didn't work worth
  7. a hoot on a CGA laptop or an EGA desktop unit.  (The author has a PS/2
  8. with VGA, so now maybe it doesn't work there!)  To remedy this and add a
  9. couple other niceties, I did some modifications.  The underlying maze
  10. generation code is really great, however; I can take no credit for it,
  11. and I did not even dream of touching it!  Thanks Thomas G. Ore, wherever
  12. you are!!!
  13.  
  14. I changed the a number of values in the program so that it would display
  15. properly on my EGA after compiled; changes were made so that CGA also
  16. worked.  VGA should stil work.  I next changed the prompt for the
  17. USER-DEFINED maze which asked for "(Rows,Cols)" then did a scanf
  18. function to read the keyboard input from the screen.  If the user keyed
  19. in the comma, it naturally didn't work properly, so I removed the comma
  20. from the prompt!  Big deal...  The changes I made have been identified
  21. by "JLW" in the comments.  The mazes generated are really quite good
  22. (amazing?).  If you Ctrl-Break out of the program, you will leave an EGA
  23. screen in 43-line mode, so you have to watch that.  The printer set-up
  24. was written for a wide-carriage LQ Epson with IBM character set, so I
  25. added code to work with both wide and narrow carriage draft-mode
  26. Proprinters, which is even more generic than the LQ Epson code supplied.
  27. A narrow carriage LQ Epson set of code was also added, based upon the
  28. wide carriage code.  If you have a narrow carriage, The CPI will be
  29. automatically set to print at 80, 96, and 132 columns, depending on maze
  30. width.  If you have a wide-carriage, the program will automatically set
  31. the pitch at multiples so that up to 132 columns, 156 columns, or 230
  32. columns will print automatically.  At 8-lines-per-inch, on a 14-inch
  33. wide piece of paper, you can print a HUGE maze that will take as much
  34. patience as a jig-saw puzzle to solve!!!  A new command-line variable
  35. will set the printer option.  Enter MAZE H (h or ?) to get a list of
  36. Usage.  Most printers can work with IBM Proprinter emulation, all you
  37. need is IBM line/box characters as a minimum.
  38.  
  39. Anyway, my kids love this program, and maybe yours will too!
  40.  
  41. Jim Wargula 07-06-88
  42.