home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 647.lha / TacTix / tactix.doc.pp / tactix.doc
Text File  |  1992-05-24  |  4KB  |  74 lines

  1.                TACTIX  by Russ Yost, 15 October, 1990
  2.  
  3.      Tactix is a "take-away" game similar to NIM.  It was invented by
  4. Piet Hein, a mathematician in Copenhagen, in the '40's.  Martin Gardner
  5. described it in articles in Scientific American in the 50's, and in his
  6. book, The Scientific American Book of Mathematical Puzzles and
  7. Diversions, published by Simon and Schuster, New York, in 1959.
  8.  
  9.      The game starts with a 6x6 board filled with pieces.  Each player
  10. takes away a group of contiguous pieces from a row or column.  The
  11. object is to force your opponent, in this case, the computer, to take
  12. the last piece.
  13.  
  14.      Make your play by "dragging" the mouse over the group you wish to
  15. play, starting at one end and continuing to the other.  By "dragging"
  16. is meant: use the mouse to place the cursor on the piece at one end of
  17. the group you wish to remove; depress and then hold down the left mouse
  18. button while moving the cursor with the mouse till it is on the end
  19. piece of the group you wish to remove; release the left mouse button.
  20.  
  21.      This process selects the pieces to play and they are then
  22. highlighted.  If you wish to change your play at this time, you may
  23. repeat the dragging process; the new play is then highlighted.
  24.  
  25.      To actually remove the highlighted pieces, "click on" the "PLAY"
  26. box. (Place the cursor in the PLAY box, then depress and release the
  27. left mouse button.)
  28.  
  29.     If you make an illegal play, it will be rejected and you will be
  30. permitted to try again.
  31.  
  32.     The computer will then evaluate the results of the plays it can
  33. make, select one, highlight it briefly, then remove the pieces and wait
  34. for you to play again.
  35.  
  36.     On your turn, you may click on the RESIGN box; a new game will be
  37. started.  Or, you can click on the QUIT box, which ends the session of
  38. game playing.  The scores are not retained for a future session.  You
  39. may alternately quit by clicking on the close gadget in the upper left
  40. corner of the screen.
  41.  
  42.      Tactix was written in JForth and is "cloned" for public release.
  43.  
  44.                         PLAY STRATEGY
  45.  
  46.      This game is related to NIM, a take-away game that starts with a
  47. number of piles of counters, and players may take any number of
  48. counters from any one pile, the object being to take the last piece. 
  49. The pieces in Tactix can be considered to be in a varying number of
  50. groups and the play rules mean that pieces can be removed from only one
  51. group.  However, in contrast to NIM, pieces can be removed such that
  52. the number of groups increases.  When the maximum number of pieces in
  53. any group is two, Tactix becomes strictly a game of NIM, since the
  54. number of groups can not then be increased.  As a result, I think a
  55. helpful strategy is to apply the NIM strategy: play so that the
  56. exclusive-or bit-wise sum of the numbers of pieces in each group is
  57. zero.  Such a board situation is said to be "safe" for the player who
  58. attains it.  For example, suppose there are three groups left
  59. containing 1, 2, and 3 pieces.  These are binary 001, 010, and 011. 
  60. Exclusive or-ing these results in zero.  In NIM this would be a safe
  61. situation, but in Tactix, it may potentially be unsafe, since the group
  62. of three can be split into two groups of one.
  63.  
  64.      Another modification from NIM, in which the object is to take the
  65. last piece, is required because here the object is to force your
  66. opponent to take the last piece.  Near the end of a game, try to leave
  67. an odd number of groups each containing one piece; this will force the
  68. computer to take the last piece.
  69.  
  70.      By applying this strategy and using your superior intellect, you
  71. will be able to beat the computer; it is not very smart!
  72.  
  73.      HAVE FUN!
  74.