home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 128 11 / q11.d81 / t.namystics < prev    next >
Text File  |  2022-08-28  |  5KB  |  122 lines

  1.                                N A M Y S T I C S
  2.  
  3.                              featuring WINDOWPRINT
  4.  
  5.                         by Fender Tucker and Scott Resh
  6.  
  7.     This is another one of my little program ideas inspired by a useful ML
  8. routine.  Actually, I got the idea for writing a NAMYSTICS program after
  9. seeing them in an old issue of GAMES magazine, and it coincided with Scott's
  10. WINDOWPRINT routine in what I hope is a most serendipitous way.
  11.  
  12.     As you know, I like board games and puzzles, especially when there is a
  13. little bit of history and romance to them.  According to GAMES, Namystics
  14. were quite popular in the 20's.  I can just imagine a flapper and her
  15. dashing beau, sitting in a Victorian parlor sipping bathtub gin, trying to
  16. solve the latest Namystics from the Times.
  17.  
  18.     NAMYSTICS are visual puzzles formed by laying out the letters of the
  19. alphabet in a triangle, like this.
  20.  
  21.             A Z
  22.            B   Y
  23.           C     X
  24.          D       W
  25.         E         V
  26.        F           U
  27.       G             T
  28.      H               S
  29.     I J K L M N O P Q R
  30.  
  31. The puzzle-maker takes the name of a well-known person, place or thing and
  32. draws a straight line from the first letter to the second, the second to the
  33. third, the third to the fourth, and so on.  Then the polygons formed by the
  34. lines are filled in.  The shape created is the NAMYSTIC.  The task of the
  35. solver is to determine the name of the NAMYSTIC from just the shape alone. 
  36. Often the puzzle-maker will narrow it down a little by giving a clue, such
  37. as Bad Actor Turned President or Legendary 98-Story Software Monolith.
  38.  
  39.      The program wasn't complete until I could give you the ability to
  40. create Namystics for your friends to pore over, and that's where Scott's
  41. WINDOWPRINT came in.  It allows the program, with some POKEs and a SYS
  42. command, to print out a portion of the graphic screen -- just the portion
  43. with the puzzle.  Underneath, in text mode, the description (or clue) is
  44. printed.
  45.  
  46.      After you RUN the program, you enter the name of the person, place or
  47. thing and the lines will be drawn using the handy BASIC 7.0 DRAW command. 
  48. Then move the target cursor into the areas to be filled and press SPACE and
  49. the PAINT command fills it in.  Get them all filled in and press RETURN and
  50. you can enter the clue, or description.  Then get your printer ready and
  51. print the Namystic out.
  52.  
  53.     So why doesn't the program do the fills for you?  Good question.  I
  54. couldn't figure out any way for the program to KNOW whether an area is
  55. completely fenced in or not.  Maybe some bright logician or programmer can
  56. come up with a way and let us all know.  I'd be happy to add the algorithm
  57. to the program.  If you press SPACE when the cursor is outside a polygon,
  58. you'll get exactly what you expect and deserve; the whole screen will slowly
  59. fill and you'll wear your printer ribbon out quickly.
  60.  
  61.       It's a no-frills program, but it doesn't need them.  Some Namystics
  62. will be easy but others won't.  I think the charm of Namystics lies in the
  63. fact that we all have our own individual shape.  It's possible that
  64. Namystics for two differently-named items could have the exact same shape,
  65. but not very likely.
  66.  
  67.      WINDOWPRINT is easy to use in your BASIC programs.  Just load it into
  68. place with this command near the beginning of your program.
  69.  
  70. BLOAD"WP128.1300",B0,P4864
  71.  
  72. There are three versions of WINDOWPRINT on this issue in case the version at
  73. $1300 (4864) conflicts with some other routines you may be using.  I
  74. recommend you make a variable equal to the starting address of the routine
  75. you're using.  The other versions are at $0C00 (3072) and $1A00 (6656).
  76.  
  77. WP = 4864
  78.  
  79. To set the parameters for the "window" POKE the following locations:
  80.  
  81. WP + 3  - Printer device number (default is 4)
  82.  
  83. WP + 4  - Printer secondary address (default is 0 for uppercase graphics;
  84.           make it 7 for lowercase)
  85.  
  86. WP + 5  - Line feed flag (default is 0 for NO LINE FEEDS; make it 1 if your
  87.           printer requires a line feed)
  88.  
  89. WP + 6  - Starting column number, 0-39, (default is 0)
  90.  
  91. WP + 7  - Starting row number, 0-24, (default is 0)
  92.  
  93. WP + 8  - Ending column number, 0-39 (default is 39)
  94.  
  95. WP + 9  - Ending row number, 0-24 (default is 24)
  96.  
  97. WP + 10 - High byte of screen address (default is 32)
  98.  
  99.      As you can see, the defaults will print the whole screen.  The screen
  100. address ($2000) is the normal hi-res area set when you do a GRAPHIC1 or
  101. GRAPHIC2 command.
  102.  
  103.      This routine is an upgrade of the routine used in Barbara Schulak's
  104. LABEL DESIGNER from LOADSTAR 128 #4.  It works with any printer or interface
  105. that exactly emulates the Commodore 1525 format.  IT DOES NOT WORK WITH
  106. JIFFYDOS INSTALLED UNLESS YOU SWITCH IT OFF BEFORE WINDOWPRINT IS CALLED. 
  107. If it doesn't work with your setup, but you're sure you're set up for
  108. 1525-emulation mode, you might try flipping some DIP-switches.  It's beyond
  109. our capabilities to support all of the printer formats there are, I'm
  110. afraid.
  111.  
  112.      I hope you enjoy NAMYSTICS.  128 programmers, I'm a fan of little,
  113. clever puzzles like this so if you want to become famous as a LOADSTAR
  114. author, peruse the puzzle magazines (especially out of print,
  115. non-copyrighted ones) and send me your program.  Keep it small and
  116. LOADSTAR-like and I'll send you small and LOADSTAR-like bundles of money for
  117. your efforts.
  118.  
  119. FT
  120.                              **** End of Text ****
  121.                                                                             
  122.