home *** CD-ROM | disk | FTP | other *** search
/ Season's Greetings & Games Unlimited / UGOLD_cd2.iso / tangram / tangram.doc < prev    next >
Text File  |  1994-04-15  |  23KB  |  476 lines

  1.  
  2.                             TANGRAM ver 1.1
  3.                
  4.                    The Ancient Chinese Jigsaw Puzzle
  5.          
  6.                   Computer Adaptation by Judah Warshaw
  7.                 Copyright (c) 1994, All Rights Reserved
  8.         
  9.     Program Requirements: TANGRAM requires VGA graphics (capable of
  10.                           640x480 in 16 color mode) and a mouse.
  11.                           It will run on any class PC (from XT's 
  12.                           and up).
  13.  
  14. PROGRAM DESCRIPTION & FEATURES
  15.  
  16.  TANGRAM brings the ancient Chinese jigsaw puzzle game to life on
  17.  your PC. Unlike western jigsaw puzzles, Tangram puzzles all use
  18.  the same 7 pieces. These pieces are derived from cutting a square
  19.  into seven geometric shapes. By using just the 7 pieces, hundreds
  20.  of forms can be created. These range from geometric shapes and
  21.  designs to people engaged in all sorts of activities, from houses
  22.  boats and guns to animals and birds, and just about everything in
  23.  between. TANGRAM can be used for logo design, inspiration,
  24.  unlocking your imagination and just plain fun.
  25.  
  26.  The endless possibilities of TANGRAM puzzles have intrigued people
  27.  for centuries. Try solving a TANGRAM puzzle or two and see why.
  28.     
  29.  TANGRAM features full 360-degree rotation control over the playing
  30.  pieces, user-selectable colors from the entire 1/4 million colors
  31.  available on VGA systems, is fully mouse driven with a 3D push
  32.  button interface, has a built-in screen saver, full on-line help
  33.  that explains all aspects of the program, and many other
  34.  customizing features. All options are saved and reloaded the
  35.  next time you play.
  36.  
  37. QUICK START
  38.  
  39.  Just type TANGRAM to run the program. Almost all the information
  40.  you need is in the on-line help. Just click your mouse on the
  41.  button that says Help, and read through the information available.
  42.  To QUIT, click on the "-" button in the top left corner of the
  43.  screen.
  44.  
  45. CONTACTING THE AUTHOR
  46.  
  47.  TANGRAM is being distributed as Shareware. If you use the game
  48.  for more than one month, you are expected to pay for its use. To
  49.  register the game send the registration fee to the author. The
  50.  registration for TANGRAM is $12.00 (US), plus $3 worldwide
  51.  shipping and handling, for a total of $15. The author can accept
  52.  cash and checks in both US dollars and most European, Australian
  53.  and other currencies. When paying in non-US dollar currencies,
  54.  use the standard exchange rate for dollars in your currency, and
  55.  indicate so on your order form. Orders can also be accepted with
  56.  a MasterCard, EuroCard and IsraCard. For your convenience, the
  57.  file ORDER.FRM may be printed to obtain a registration form. The
  58.  author may be contacted at:
  59.  
  60.  By Mail at:             By Phone at:
  61.  Judah Warshaw            Tel. (+972)-2-830-001
  62.  P.O. Box 27054            From 2:00pm to 9:00pm
  63.  Jerusalem  91270          Israel Standard Time.
  64.  ISRAEL           
  65.  
  66.  By CompuServe EMail at: [100274,205]
  67.  
  68.  Bug reports, suggestions, and comments are always welcome.
  69.  
  70. BENEFITS OF REGISTRATIONS
  71.  
  72.  When you send in your registration fee, you will receive the
  73.  following:
  74.  
  75.  -> The latest, most up-to-date version of the TANGRAM program.
  76.  -> Removal of all registration reminders.
  77.  -> A new puzzle library with over 250 puzzles.
  78.  -> A new, really neat, built-in screen saver.
  79.  -> Utility programs to let you share your own puzzles with other
  80.    registered users. 
  81.  -> Information about upgrades and discounts on future puzzle
  82.    libraries. (Send me your best puzzles for possible inclusion in a
  83.    future puzzle library. Have your name in lights and be famous!)
  84.  -> Copies of other shareware programs by the author to try.
  85.  
  86. ORDERING FROM Public (Software) Library (PsL)
  87.  
  88.  CREDIT CARD ORDERS ONLY -
  89.  
  90.  You can order with MC, Visa, Amex, or Discover from Public (software)
  91.  Library by calling 800-2424-PsL or 713-524-6394 or by FAX to
  92.  713-524-6398 or by CIS Email to 71355,470. You can also mail credit
  93.  card orders to PsL at P.O.Box 35705, Houston, TX 77235-5705.
  94.  
  95.  THE ABOVE NUMBERS ARE FOR ORDERS ONLY.
  96.  
  97.  When ordering from PsL, please mention Tangram, product #11293.
  98.  
  99.  Any questions about the status of the shipment of the order, refunds,
  100.  registration options, product details, technical support, volume discounts,
  101.  dealer pricing, site licenses, etc, must be directed to Judah Warshaw,
  102.  at any of the above contact numbers.
  103.  
  104.  To insure that you get the latest version, PsL will notify us the day of
  105.  your order and we will ship the product directly to you."
  106.  
  107. ORDERING ON-LINE FROM COMPUSERVE INFORMATION SERVICE
  108.  
  109.  If you have a CompuServe account, you can order Tangram online from
  110.  the Shareware Registration Service.  Type GO SWREG at any CompuServe
  111.  prompt and follow the directions.  Tangram is product number 2464 in the
  112.  SWREG database.  The registration fee will be charged to your CIS
  113.  account, and CIS will inform the author of your registration.
  114.  
  115. SHAREWARE and the ASP OMBUDSMAN
  116.  
  117.  This program is produced by a member of the Association of Shareware
  118.  Professionals (ASP).RATIONS
  119.  
  120.  When you send in your registration fee, you will receive the
  121.  following:
  122.  
  123.  -> The latest, most up-to-date version of the TANGRAM program.
  124.  -> Removal of all registration reminders.
  125.  -> A new puzzle library with over 250 puzzles.
  126.  -> A new, really neat, built-in screen saver.
  127.  -> Utility programs to let you share your own puzzles with other
  128.    registered users. 
  129.  -> Information about upgrades and discounts on future puzzle
  130.    libraries. (Send me your best puzzles for possible inclusion in a
  131.    future puzzle library. Have your name in lights and be famous!)
  132.  -> Copies of other shareware programs by the author to try.
  133.  
  134. ORDERING FROM Public (Software) Library (PsL)
  135.  
  136.  CREDIT CARD ORDERS ONLY -
  137.  
  138.  You can order with MC, Visa, Amex, or Discover from Public (software)
  139.  Library by calling 800-2424-PsL or 713-524-6394 or by FAX to
  140.  713-524-6398 or by CIS Email to 71355,470. You can also mail credit
  141.  card orders to PsL at P.O.Box 35705, Houston, TX 77235-5705.
  142.  
  143.  THE ABOVE NUMBERS ARE Fmmercial software,
  144.  and the copyright holder retains all rights, with a few specific
  145.  exceptions as stated below. Shareware authors are accomplished
  146.  programmers, just like commercial authors, and the programs are of
  147.  comparable quality. (In both cases, there are good programs and
  148.  bad ones!) The main difference is in the method of distribution.
  149.  The author specifically grants the right to copy and distribute
  150.  the software, either to all and sundry or to a specific group.
  151.  For example, some authors require written permission before a
  152.  commercial disk vendor may copy their Shareware.
  153.  
  154.  Shareware is a distribution method, not a type of software. You
  155.  should find software that suits your needs and pocketbook, whether
  156.  it's commercial or Shareware. The Shareware system makes fitting
  157.  your needs easier, because you can try before you buy. And
  158.  because the overhead is low, prices are low also. Shareware has
  159.  the ultimate money-back guarantee -- if you don't use the product,
  160.  you don't pay for it.
  161.  
  162.  
  163. DISCLAIMER - AGREEMENT
  164.  
  165.  Users of TANGRAM must accept this disclaimer of warranty: "TANGRAM
  166.  is supplied as is. The author disclaims all warranties, expressed
  167.  or implied, including, without limitation, the warranties of
  168.  merchantability and of fitness for any purpose. The author
  169.  assumes no liability for damages, direct or consequential, which
  170.  may result from the use of TANGRAM."
  171.  
  172.  TANGRAM is a "shareware program" and is provided at no charge to
  173.  the user for evaluation. Feel free to share it with your friends,
  174.  but please do not give it away altered or as part of another
  175.  system. The essence of "user-supported" software is to provide
  176.  personal computer users with quality software without high prices,
  177.  and yet to provide incentive for programmers to continue to
  178.  develop new products. If you find this program useful and find
  179.  that you are using TANGRAM and continue to use TANGRAM after a
  180.  reasonable trial period, you must make a registration payment of
  181.  $12 to Judah Warshaw. The $12 registration fee will license one
  182.  copy for use on any one computer at any one time. You must treat
  183.  this software just like a book. An example is that this software
  184.  may be used by any number of people and may be freely moved from
  185.  one computer location to another, so long as there is no
  186.  possibility of it being used at one location while it's being used
  187.  at another. Just as a book cannot be read by two different
  188.  persons at the same time.
  189.  
  190.  Commercial users of TANGRAM must register and pay for their copies
  191.  of TANGRAM within 30 days of first use or their license is
  192.  withdrawn. Site-License arrangements may be made by contacting
  193.  Judah Warshaw.
  194.  
  195.  Anyone distributing TANGRAM for any kind of renumeration must
  196.  first see the included VENDOR.DOC file for instructions. 
  197.  
  198.  You are encouraged to pass a copy of TANGRAM along to your friends
  199.  for evaluation. Please encourage them to register their copy if
  200.  they find that they can use it. All registered users will receive
  201.  a copy of the latest version of TANGRAM.
  202.  
  203. SUPPORT
  204.  
  205.  Support for TANGRAM is available via    phone, mail, and Compuserve
  206.  email for no less than one year from purchase of the product, and
  207.  will be available for as long as the program is still being sold.
  208.  See the first page of this document for phone number, mail
  209.  address, and Compuserve email address. Updates are available at
  210.  any time to registered users for a nominal fee to cover costs of
  211.  labor, materials, shipping, and handling. Contact the author to
  212.  check if your version is up to date and for update costs. Bug
  213.  fixes for major bugs (if any ever occur) will be shipped free to
  214.  registered users for a period of three months after the date of
  215.  registration.
  216.  
  217. GAME OVERVIEW
  218.  
  219.  TANGRAM is an age old jigsaw puzzle with its roots in China. In
  220.  its traditional form, all puzzles are solved using the same seven
  221.  pieces. These pieces are derived from taking a square and cutting
  222.  it up into the 7 basic shapes. Once the square is cut up, it is
  223.  quite hard to reform it. Try solving puzzle #1 to see how TANGRAM
  224.  pieces are formed.
  225.  
  226.  The rules of solving TANGRAM puzzles are basic.
  227.  
  228.  (1) All seven piece must be used. In almost all cases, the pieces
  229.  are touching on another. Only very few puzzles will have pieces
  230.  not touching, such puzzles are usually when forming 2 identical
  231.  shapes. See puzzle #27 for an example of this.
  232.  
  233.  (2) No piece may overlap another. Nothing is gained by standing a
  234.  piece on its side, or laying it on top of another piece. TANGRAM
  235.  is a flat 2-dimensional puzzle.
  236.  
  237.  Aside from these 2 limitations, you have a free hand in doing what
  238.  you wish with TANGRAM puzzles. You may solve the puzzles anywhere
  239.  on the screen, in any order you wish. Some older TANGRAM puzzle
  240.  books gave names to the puzzles. We have not done so. Since
  241.  different people see different things in the puzzles, we have left
  242.  the naming of them to the user. No one can say whether a puzzle
  243.  is truly solved either. If you are satisfied that you have
  244.  recreated the image or shape, then consider it done.
  245.  
  246. MOVING & ROTATING THE PIECES
  247.  
  248.  To MOVE a piece: Each TANGRAM piece has a small circle in its
  249.  center. This is used for moving and rotating the pieces. Point
  250.  your mouse to the circle and click with the LEFT button (or button
  251.  #1 if you have switched the buttons). Continue to hold down the
  252.  mouse button. The mouse cursor will disappear, and the piece will
  253.  only be outlined. You can now move the piece to wherever you
  254.  would like on the playing field. You can not move the piece on
  255.  top of the button bar, into the solution box, or onto the status
  256.  bar on the bottom. The piece will move with you as you move the
  257.  mouse around. Let go of the button when you have moved the piece
  258. to the desired location. The mouse cursor will reappear, and the
  259.  piece will be redraw in its new location.
  260.  
  261.  To ROTATE a piece: Click and hold with the RIGHT mouse button. The
  262.  piece will start to rotate clockwise in either 1 or 5 degree
  263.  increments (see THE DEGREE BUTTON later in this document or in the
  264.  on-line help). To rotate counter-clockwise, you may either hold
  265.  down BOTH buttons, click and hold with the middle button if your
  266.  mouse driver supports it, or hold down the SHIFT, ALT or CONTROL
  267.  keys while holding with the right mouse button. NOTE: You can
  268.  move and rotate the pieces at the same time.
  269.  
  270. CHOOSING A PUZZLE TO SOLVE
  271.  
  272.  The TANGRAM puzzle comes with 50 puzzles for you to solve. (The
  273.  registered version comes with over 250!). A scaled down version of
  274.  the puzzle you are working on is shown in the Solution Box on the
  275.  right hand side of the screen. Under this box are 2 buttons, one
  276.  marked Solve and the other Puzzle. Click on the puzzle button to
  277.  enter the Puzzle Selection Screen. From here you can view a full
  278.  screen version of the puzzle you are working on, or choose a new
  279.  puzzle to solve. If you just wish to see the puzzle you are doing,
  280.  just click anywhere on the screen to return to your game. If you
  281.  would like to choose a new puzzle to solve, use the controls on top of
  282.  the screen to work your way through the puzzle library until you find
  283.  a puzzle that interests you. You can move forward or backward through
  284.  the library in units of 1, 10, or 100. This makes it easy to quickly
  285.  find the puzzle you would like. When choosing a new puzzle, you must
  286.  click on the OK button to return to the game. The new puzzle will be
  287.  scaled into the Solution Box, ready for solving.
  288.  
  289.  If you are having trouble with a puzzle, and would like to see the
  290.  solution, click on the Solve button. The program will
  291.  automatically move and rotate the pieces into position (as they
  292.  appear on the Puzzle Selection Screen).
  293.  
  294. THE BUTTON BAR
  295.  
  296.  On top of the playing field are a series of buttons, commonly
  297.  referred to as a button bar. This section will give information
  298.  about each of the buttons available what they do.
  299.  
  300.  THE ABOUT BUTTON will give you information about the Tangram
  301.  program, including version number and the author's name. If you
  302.  are using an unregistered version of the program, you will also
  303.  see a list of various benefits of registering the program. Click
  304.  your mouse or hit any key to see a second screen of information
  305.  telling you how to order your registered copy. This information
  306.  is also shown when you first run the program. Click your mouse or
  307.  hit a key to pass this screen and begin to play. On the bottom of
  308.  the ordering info screen is a button to print out an order form.
  309.  Make sure your printer is on-line and plugged into LPT1 (Printer
  310.  Port number 1, the most usual setup). You can print an order form
  311.  this way, or just copy it to your printer from DOS (use the
  312.  command COPY ORDER.FRM PRN). PLEASE NOTE: None of this
  313.  information is shown in the registered version.
  314.  
  315.  THE FLIP BUTTON allows you to flip the quadrangle piece over. All
  316.  the other pieces are the same whether or not they are flipped
  317.  over, except the quadrangle. Certain puzzles need it one way,
  318.  while to solve others you will have to flip it over. If you can't
  319.  seem to solve a puzzle, this is one of the things to try.
  320.  
  321.  THE COLORS BUTTON: TANGRAM allows you to make use of the over 1/4
  322.  million colors available on your VGA system. There are 4 items in the
  323.  program that you can change th colors of: the background of the
  324.  playing field, the outline of the pieces, the fill color of the
  325.  pieces, and the center circle of the pieces. Use the buttons to
  326.  choose the item to change, and the amount of color you wish to use.
  327.  VGA colors are formed by combinations of Red, Green, and Blue
  328.  intensity, ranging from 0 (no color) to 63 (highest intensity).
  329.  Choose a combination of Red, Green, and Blue that suits your fancy,
  330.  and a color combination to your liking. Click on the OK button to
  331.  return to play.
  332.  
  333.  A note on color combinations: Some color combinations will not
  334.  work well together, and some not at all. If the fill color of the
  335.  pieces is the same as the background, then you will not see the
  336.  puzzles in the puzzle selection screen, nor will you see them
  337.  while rotating and moving the pieces. Experiment around to see
  338.  what works best for you.
  339.  
  340.  THE SAVE BUTTON: You can save any screen layout you wish to the
  341.  puzzle file. Just click on the SAVE button. You will be asked to
  342.  confirm you choice. The puzzle file can hold up to 99,999
  343.  puzzles. Registered users can exchange their saved puzzles with
  344.  each other. The registered version comes with utilities to help
  345.  users exchange puzzle libraries. There is also a special utility
  346.  that will load your saved puzzles from the shareware library to
  347.  the registered version library, so all your work will not be lost.
  348.  
  349.  THE HELP BUTTON: TANGRAM includes complete on-line help for all
  350.  the features of the program. When you click on HELP, the help
  351.  windows will open up, and the mouse cursor will change to a
  352.  question mark. You can then click on any item on the screen to
  353.  get help about it. Or just click on NEXT PAGE to work your way
  354.  through the help item by item. Click on OK to return to your
  355.  game.
  356.  
  357. THE MOUSE STATUS BAR
  358.  
  359.  At the end of the Button Bar is the Mouse Status Bar. This gives
  360.  you the constant location of the mouse cursor on the screen,
  361.  giving first the horizontal coordinate (the 'X') and then the
  362.  vertical ('Y'). Use this along with the status bar on the button
  363.  to help orientate the pieces exactly as you wish.
  364.  
  365. SCREEN SAVER
  366.  
  367.  TANGRAM comes with a built-in screen saver, which will engage if
  368.  no mouse movements are detected after a given number of minutes.
  369.  You can engage the screen saver at any time by clicking on the 'S'
  370.  in the top right hand corner of the screen. By clicking with the
  371.  RIGHT mouse button, you can configure the amount of time it will
  372.  take before the screen saver kicks in. This can be set for
  373.  anywhere between 1 and 30 minutes. TANGRAM comes preset at 5
  374.  minutes. You can also set it to 0 minutes, which disables the
  375.  screen saver from engaging. You can still manually start the
  376.  saver by clicking on the 'S' as mentioned above. Note that the
  377.  registered version comes with a completely different graphic
  378.  screen saver as an added bonus.
  379.  
  380. THE STATUS BAR
  381.  
  382.  Along the bottom of the screen is the Status Bar. This will tell
  383.  you about the currently selected playing piece. Once you click on
  384.  a piece, the status will show which piece you have chosen, its
  385.  current X and Y location on the screen, and its current rotation
  386.  value. Use these indicators to help you move the pieces into the
  387.  precise position you wish. Note that when you first click on a
  388.  piece, no matter where you click on the center circle, the mouse
  389.  cursor will move to the exact location of the piece. This way you
  390.  can check a piece's location by just clicking on the center circle
  391.  without having it move around.
  392.  
  393. THE OPTIONS BUTTONS
  394.  
  395.  On the bottom right of the screen are 3 buttons that let you set
  396.  various options of the program.
  397.  
  398.  THE DEGREES BUTTON lets you set how many degrees the pieces will
  399.  rotate at a time. This can be set to either 1 or 5 degrees. For
  400.  most puzzles 5 degrees will be fine, but sometimes you may wish to
  401.  fine tune a piece, so then set it to 1 degree.
  402.  
  403.  THE SPEED BUTTON lets you set the speed at which the pieces will
  404.  rotate. This can be set to Slow, Med or Fast. Find the speed you
  405.  like.
  406.  
  407.  THE CIRCLE SIZE button lets you set how big the center circle of
  408.  the pieces will be. This number is the radius in pixels from the
  409.  center of the piece. You can set it to between 1 and 5, however
  410.  you wish. If you would like it off altogether, then set the
  411.  Center Color and Fill Color to be the same.
  412.  
  413. SAVING OF OPTIONS
  414.  
  415.  When you quit the TANGRAM program, all the current options are
  416.  saved. This includes the selected puzzle, where the pieces are on
  417.  the screen, the selected colors, and all other features of the
  418.  program. The next time you run TANGRAM, all these options will be
  419.  restored, so that the program will be left in exactly the state
  420.  that it was left. You can restore the default options by deleting
  421.  the TANGRAM.CFG file. It will be recreated the next time you quit
  422.  TANGRAM.
  423.  
  424. FREQUENTLY ASKED QUESTIONS
  425.  
  426.  Q: Why doesn't TANGRAM tell me when I solved a puzzle? It sure
  427.  looks solved to me!
  428.  
  429.  A: This was the most asked question from beta-testers of TANGRAM.
  430.  The reasons are like this: First, a number of the puzzles have
  431.  more than one solution, so it is possible to solve it in a way
  432.  completely different than the way it was entered into the puzzle
  433.  library. Then there is the problem that 2 of the pieces have
  434.  matches. It does not really matter which of the big or small
  435.  triangles you put where, since they are identical. Then comes the
  436.  fact that the quadrangle looks the same whether rotated 0 or 180
  437.  degrees, and the same at 1 or 181 and so on. The square looks the
  438.  same at 0, 90, 180, and 270 degrees. You can use any of these
  439.  orientations you wish. Plus, because of certain inherent
  440.  limitations of computer graphics, at least in the 640 x 480 mode,
  441.  a number of rotation values will look exactly the same. All these
  442.  things considered make it very difficult to get an exact match.
  443.  
  444.  On top of it all, many of the puzzles are truly hard to duplicate
  445.  exactly. It would be very frustrating if you know you have the
  446.  puzzle solved, but just that I chose to rotate a piece one degree
  447.  further, and move it one pixel lower on the screen (check out the
  448.  Indian chief for an example of this). It is not a problem of the
  449.  puzzle being in a different location on the screen, the program
  450.  could take that into account and still check if it was solved. It
  451.  is a problem of being one pixel off and not knowing it. You see
  452.  that you have solved the puzzle, so you should consider it solved.
  453.  There is a certain Zen aspect of Tangram puzzles saying that if
  454.  you consider the puzzle solved, then it is. So long as you are
  455.  satisfied with your solution.
  456.  
  457.  So taking these factors together, it was decided NOT to include a
  458.  feature saying whether or not a puzzle was solved. Since it is
  459.  hard to duplicate what I did so exactly, it was dispensed with.
  460.  
  461. TECHNICAL NOTES
  462.  
  463.  For those interested, TANGRAM is written entirely in C, using
  464.  Borland's Turbo C++ 3.0 complier. No outside libraries are used,
  465.  and no assembly is used either. The most difficult part of the
  466.  program was the real-time scaling of puzzles into the solution
  467.  box. Only the center and rotation values are stored for the
  468.  pieces; they are scaled upon loading of the puzzle into the game.
  469.  This is done by reading screen memory directly. Even though this
  470.  is not usually done in 640x480 16 color mode, since this does not
  471.  return a color value, but a byte of values for one of the 4
  472.  planes. By manipulating the palette, the value of the bits was
  473.  enough. Screen memory is read, and the value of each bit is
  474.  compared to a known value for the background. All this allowed
  475.  for very quick gray scaling of the screen into the solution box.
  476.