home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / games1 / domino42.zip / DOMINO42.DOC < prev   
Text File  |  1993-05-28  |  21KB  |  376 lines

  1.       
  2.       
  3.       
  4.                            Mack's DOMINO Parlor
  5.                          Version 4.2, December, 1991
  6.                            Copyright (c) B. J. Ball
  7.       
  8.  
  9.       System Requirements: IBM PC or Compatible, 256K RAM,
  10.                            Graphics card and monitor (CGA/EGA/VGA)
  11.  
  12.       An asterisk denotes a feature of the registered version only.
  13.       
  14.       Description of game.
  15.      
  16.       This is a computer implementation of a two-person single-spinner 
  17.       domino game. The discussion below presupposes some knowledge of 
  18.       this game, but an appendix, adequate for one who has never played 
  19.       dominoes before, is included. Since domino rules tend to be quite
  20.       local, even those very familiar with some version of the game might 
  21.       wish to scan the Appendix for possible variations from their rules. 
  22. *     (Some of the more common variations are included as options.)
  23.       
  24. *     There are three levels of play - 0,1,2 - with level 1 being the
  25. *     default. Some domino games are easy, but not this one. Only a very
  26. *     competent player can win consistently at level 2, and even level 0
  27. *     requires some attention. The game is intended to be challenging,
  28. *     but not too difficult to be enjoyable.
  29.       
  30. *     When the game starts, you will be given an opportunity to make a
  31. *     number of decisions, one being the level of play. The others will
  32. *     be discussed in detail later, but to get the game under way
  33. *     quickly, just press the Enter key once to accept all the default
  34. *     settings.
  35.       
  36.       The game proper begins with a "Draw for Down". The machine (Mack) 
  37.       will randomly select a domino for you and one for himself, 
  38.       displaying both draws and announcing who won the first down. To 
  39.       continue, press the space bar. [Pressing the space bar (or the 
  40.       Enter key) is a recurring process, not always indicated by a 
  41.       prompt. Whenever the machine seems to be waiting for you to do 
  42.       something and you don't know what, try pressing one of these keys. 
  43.       Something might happen, and nothing very bad ever does.] 
  44.       
  45.       Following the "Draw for Down", there will be a very short pause for 
  46.       shuffling and dealing; your hand will then be displayed, along with 
  47.       the current score and, if it is your down, a prompt asking you to 
  48.       specify a domino to be played. If it is Mack's down, a domino will 
  49.       be played almost immediately; press the space bar and you will be
  50.       prompted to indicate the domino you wish to play.
  51.       
  52.       If it is your turn and you wish to play, for example, the 2-3, you 
  53.       simply type 23 and press the space bar. If you make a mistake on 
  54.       the first digit, or change your mind, you may start over by 
  55.       pressing X or the backspace key. After the second digit, pressing 
  56.       any key other than the space bar or the Enter key allows you to 
  57.       reenter your choice. Once you press the space bar or Enter, though,
  58.       your domino is considered to have been exposed and must be played if
  59.       possible. 
  60.  
  61.  
  62.  
  63.  
  64.       It is important to remember that the FIRST number typed is to be 
  65.       played against a domino on the board; even though the domino 3-2 is 
  66.       the same as the domino 2-3, entering 32 is NOT the same as entering 
  67.       23 (notice also that to play the 2-3 you do not type 2-3 or 2 3 or 
  68.       2,3; just 23 with no separator). 
  69.  
  70.       If you type 23 as your choice and there is no place to play a 2 on 
  71.       the board, you will be asked to reenter your play. If there is 
  72.       exactly one legal place to play a 2, or if all places are equivalent,
  73.       the play will be made as soon as you hit the space bar; if there are
  74.       two or more inequivalent places to play a 2, however, you will be
  75.       asked to indicate the "End" on which you wish to play. (There are at
  76.       most four ends; here they are numbered 1,2,3,4, counterclockwise,
  77.       starting with the end at the right.) When the computer chooses among
  78.       equivalent ends, the one containing the smallest number of dominoes
  79.       will be selected.
  80.       
  81.       If it is your turn and you do not have a domino that can be played, 
  82.       press D to draw or P to pass (or simply press the space bar without
  83.       making an entry). A request to pass will not be honored if the boneyard
  84.       is not empty; instead, it will be treated as a draw. Similarly, when
  85.       the boneyard is empty, a request to draw will be interpreted as a pass.
  86.       (Thus D and P are equivalent entries.) Neither Draw nor Pass will be
  87.       accepted if you have any domino that will play; in this case, a playable
  88.       domino will be briefly marked, and you will be asked to reenter your play.
  89.       
  90.       Each time you play a domino, the domino played will be removed from 
  91.       the display of your hand, and the last domino in the display will 
  92.       take its place. Thus your hand is continually being rearranged, 
  93.       which can be disconcerting. (The object is to make room for the 
  94.       dominoes on End 3, which will be snaking around the table and might 
  95.       otherwise run into the display of your hand.) *Whenever it is your
  96. *     turn to play, however, you may rearrange the display of your hand.
  97. *     Press A to enter the 'adjust' mode; one of your dominoes will be
  98. *     marked with a heavy vertical centerline of a different color. This
  99. *     mark can be moved from domino to domino in your hand with the arrow
  100. *     keys. Pressing 'Ins' will "select" the currently marked domino. To
  101. *     interchange two dominoes, mark both of them and press Enter. To flip
  102. *     a single domino, mark it alone, then press Enter. (After each flip
  103. *     or interchange, the selection marks are removed.) To return to the
  104. *     game, press Enter with no domino currently selected (or press Esc).
  105.       
  106.       Whenever either you or Mack plays a domino, the count, if any, will 
  107.       be displayed. To go to the next play, after verifying the information
  108.       given, you should press the space bar. Initially, since Mack plays
  109.       so rapidly, you may find yourself waiting overlong before realizing
  110.       that it's your turn to play. It is important, though, that you have a
  111.       chance to note where Mack played and what, if anything, he made on his 
  112.       play, so he always waits for you to digest this information. Similarly,
  113.       Mack politely waits for you to confirm that your play has been properly
  114.       credited before making his own play - after your play has been made and
  115.       the count, if any, credited to you, you must press the space bar again
  116.       to tell Mack that he may proceed.
  117.  
  118.  
  119.       
  120.       
  121.       
  122.       When the first double is played, the board will be redrawn, if 
  123.       necessary, so that the spinner is in the center of the table. This 
  124.       rearrangement is necessary to allow the four ends of the spinner to 
  125.       played on normally. 
  126.  
  127.       During the course of play it may happen that so many dominoes have 
  128.       been played on a particular end that no more can be played there 
  129.       without (possibly) interfering with other parts of the display. 
  130.       When this happens, subsequent plays on that end will be indicated with
  131.       half-size dominoes. To further save space in such instances, doubles
  132.       will not be played crosswise, in the usual fashion, so some care is
  133.       involved in remembering the count value of these ends. This situation
  134.       arises relatively infrequently, and should not cause any difficulty.
  135.  
  136.  
  137.       
  138. *     Special Features.
  139.  
  140. *     There are eight choices which may be made at the beginning of each
  141. *     game. Some are obvious, but others require some explanation.
  142.  
  143. *     The first option, the level of play, needs no comment.
  144.  
  145. *     The second choice is for the initial draw, which can be 7, 9  or 11
  146. *     dominoes. This has a major effect on the game; the 11-draw game
  147. *     seems to offer the best balance between luck and skill, but many
  148. *     players prefer the smaller hands.
  149.  
  150. *     The next two choices allow the use of two special, and somewhat
  151. *     unusual rules. One of these allows a player to ask for a redeal if
  152. *     his hand contains 'too many' doubles (five or more in an 11-draw
  153. *     game, four or more in a 7- or 9-draw game). The redeal must be
  154. *     requested at the player's first opportunity to play in that hand,
  155. *     and is inplemented by pressing 'F' instead of naming a domino.
  156.  
  157. *     The other special rule, 'Highest Double Downs', requires that the
  158. *     the player holding the highest double at the beginning of a game
  159. *     (or after a blocked hand) must play that domino to start the next
  160. *     hand. In all other cases, the down is made by the person who last
  161. *     dominoed, with no restrictions on what he downs. The rule is not
  162. *     entirely clear as to the procedure in case neither player has a
  163. *     double; as implemented here, if neither has a double, there is a
  164. *     redeal and the process is repeated.
  165.  
  166. *     The first four options are toggles: pressing the correspong number
  167. *     key causes the option to change to the next in line (level from 0
  168. *     to 1 to 2, hand size from 7 to 9 to 11, Doubles or DoubleDown from
  169. *     Yes to No). The other options request input from the user.
  170.  
  171. *     The fifth option is an obvious one, the number of points
  172. *     constituting a complete game. This should be at least 250 points to
  173. *     allow for the effects of luck to even out somewhat, and probably
  174. *     should be 300 or more in an 11-draw game. In the registered version,
  175. *     any number up to 999 is acceptable.
  176.  
  177.  
  178.       
  179.       
  180.       
  181. *     The final three options affect the computer implementation, not the
  182. *     game rules themselves.
  183.  
  184. *     One useful option is that of having a complete record of the game
  185. *     written to a disk file. This will include every domino dealt, every
  186. *     play made, every score credited. This record can then be examined
  187. *     in case there is any question as to Mack's play. This slows down
  188. *     the play a bit, but many users find it helpful. (Selecting this
  189. *     option and giving 'PRN' as the filename causes the game to be
  190. *     printed out as it is played, provided the printer is currently on
  191. *     line. Hence you could cheat by looking at Mack's hand during the
  192. *     game, but of course no one would do that.)
  193.  
  194. *     Another option is that of repeating a previously played game. At
  195. *     the conclusion of each game, you will be given the opportunity to
  196. *     save the game just played for replaying later. (This is NOT a
  197. *     complete record, as described above, but is essentially just a list
  198. *     of the hands dealt.) The purpose of replaying a hand is to see
  199. *     whether you can improve your play the next time, or if you can do
  200. *     better than another player with the same deals, or (by switching
  201. *     hands) to see if you could have done better than Mack with the same
  202. *     dominoes. (If you name saved games "game0", "game1", ... "game9"
  203. *     the program will list the games available (up to 10) when you ask
  204. *     to repeat a game. You may use any names you like for saved games,
  205. *     but if the names do not begin with "game" you will have to remember
  206. *     the name of the game you wish to repeat.) Once you have chosen to
  207. *     repeat a game, you will be asked whether you wish to switch the
  208. *     hands this time. The various options in effect when that game was
  209. *     played will be restored, but you can change these before starting
  210. *     play if you wish.
  211.  
  212.       The program detects which graphics adapter is installed and active, 
  213.       and distinguishes between the CGA and the EGA/VGA. *Both versions
  214. *     allow choices of colors; with the EGA/VGA there are many useful
  215. *     combinations, but with the CGA only a relatively few choices are
  216. *     usable. In either case, if you do not like (or cannot see) what
  217. *     comes up when the game starts, press R to restart the program, and
  218. *     choose a different color combination.
  219.  
  220. *     After choosing a set of options you like, you may save them to a
  221. *     configuration file (DOM.CFG for the CGA version, DOM.CNF for the
  222. *     EGA/VGA program) to be automatically used as defaults on subsequent
  223. *     invocations of DOMINO. (All options except Record and Repeat
  224. *     are saved.) To save the current options AFTER finishing a game, type
  225. *     R to bring up the options window again, press S to save, and then
  226. *     press Q to quit or Enter to play again.
  227.       
  228.       If you prefer, you may use the Enter key whenever the space bar is 
  229.       called for. Moreover, if you get fed up with a game, you may start 
  230.       over by pressing R to Run the program again, or quit by pressing Q 
  231.       or Esc. These entries may be made whenever the machine is waiting 
  232.       for a response from you. 
  233.  
  234.  
  235.  
  236.  
  237.  
  238.       One of the queries presented to you at the end of a game is 
  239.       "Another game now ?". If you answer with Y, the next game will have 
  240.       the same parameters (level, game score, etc.) as the one just 
  241.       played, and Mack will keep a running total of the number of games 
  242.       won by you and by him during the current session, to be displayed 
  243.       at the end of the last game in the series. (If you wish to play 
  244.       again but want to change some of the parameters, use R to replay.) 
  245.       
  246.       Mack is totally honest in his play, and uses his knowledge of the 
  247.       dominoes in your hand only for checking purposes - to determine 
  248.       whether you do indeed have too many doubles, whether you own the 
  249.       domino you wish to play, and whether you actually have no legal 
  250.       play when you ask to draw or pass. His decisions as to his own play 
  251.       are based only on legitimate information - the dominoes in his 
  252.       hand, those on the board, and the number remaining in your hand and 
  253.       in the boneyard. Having a game recorded will give a partial check
  254.       of this, but you have to have faith that Mack does not peek at your
  255.       hand or finagle boneyard draws. He doesn't.
  256.  
  257.  
  258.  
  259.      
  260.                    
  261.                             DOMINO RULES 
  262.      
  263.  
  264.       The following description of the "Draw Game" of dominoes 
  265.       incorporates a complete set of rules for the two-person game; there 
  266.       may be minor variations from other sets of rules, but the game 
  267.       described is a very common version. 
  268.       
  269.       Everyone knows that a domino is a small tile, about 1 inch by 2 
  270.       inches by one-quarter inch thick, with a plain back and a face 
  271.       divided into two halves, each marked with some number of dots from 
  272.       0 to 6. (The two halves of the face are sometimes called "ends" of 
  273.       the domino.) A set of dominoes consists of 28 such tiles, with each 
  274.       possible combination from 0-0 to 6-6 occurring exactly once. A 
  275.       domino is referred to as the 2-3, the 4-6, etc., according to the 
  276.       numbers of dots on the two halves of its face. A domino having the 
  277.       same number of dots on each end is called a "double". 
  278.       
  279.       In the two person draw game, each player selects a "hand" of 11
  280.       (sometimes 9 or 7); the usual process is to place all the dominoes
  281.       face down on the table, shuffle them around a bit, and then draw the
  282.       hands at random. The dominoes left over are placed to one side and
  283.       are designated as the "boneyard", which may come into play later.
  284.       Customarily, each player will set his dominoes upright on the table
  285.       before him, with their faces visible to him but not to his opponent;
  286.       this arrangement is not mandatory, but each player is entitled to
  287.       know at any stage of the game exactly how many dominoes are left in
  288.       his opponent's hand (and in the boneyard).
  289.       
  290.       Before play begins it must be decided which contestant plays first. 
  291.       This is done by lot, usually by each player drawing a single domino 
  292.       from the shuffled set, with the player drawing the largest total 
  293.       number of spots being the designated lead off man for the first 
  294.       hand. This player is said to "have the down". The dominoes are then 
  295.       reshuffled, and hands are drawn as described above. (In some 
  296.       versions of dominoes, the down is determined quite differently. See 
  297.       the discussion of the 'Highest Double Down' rule above.) 
  298.       
  299.       At the beginning of play, the player having the down places any one 
  300.       of the dominoes from his hand face up on the table. If the sum of 
  301.       the spots on this domino is a multiple of 5 , the player is awarded 
  302.       that many points,or "count"; if the sum is not a multiple of 5, no 
  303.       score is given. Thus the 0-5, 1-4 and 2-3 each score 5 points, 
  304.       while the 4-6 and 5-5 score 10 points. No other dominoes make any 
  305.       points on the the down. 
  306.       
  307.       After the initial play, the next player places one of his dominoes 
  308.       on the table adjacent to the first one, in such a way that the 
  309.       numbers on the abutting ends match. For example, if the 3-4 is 
  310.       downed, then the 4-2 could be played, with the two 4's adjacent to 
  311.       each other, 3-4:4-2 . The exposed ends of the "board", the 3 from 
  312.       the 3-4 and the 2 from the 4-2, now total 5, and the second player 
  313.       is awarded 5 points. Only multiples of 5 count, so a play of the 
  314.       3-2, for example, would score nothing in this situation. 
  315.  
  316.  
  317.  
  318.  
  319.       Scoring after each play is similar - the sum of the exposed ends of 
  320.       the board is calculated and if this sum is a multiple of 5, the 
  321.       player receives that number of points, but otherwise he scores 
  322.       nothing. 
  323.  
  324.       Doubles must be played crosswise, and if a double forms an exposed 
  325.       end of the board, both halves of the double count toward the sum 
  326.       used in scoring. For example, if the 3-4 is downed and the next 
  327.       player places the 3-3 (crosswise, since that is required) against 
  328.       the 3 of the 3-4 , then his score is 10, counting 6 for the double 
  329.       3 on one end and 4 for the exposed 4 on the other end of the board. 
  330.       
  331.       The FIRST double played is designated as the "spinner". After (but 
  332.       not before) both of the long sides of the spinner have been played 
  333.       on, the other two ends become available for play. For example, if 
  334.       the 3-3 is downed, followed by the 3-4 and the 3-6, then (since
  335.       both long sides of the spinner are now covered) the 3-5 could be 
  336.       played against either of the 3's of the spinner (for a count of 
  337.       15). Subsequent plays could be made on the 5 or on the other end of 
  338.       the spinner, as well as on the 6 or the 4. Since the spinner is the 
  339.       only double that can be played on in this manner, the board will 
  340.       never have more than four ends. Note that the short ends of the 
  341.       spinner are not counted until they have "sprouted" (unless the 
  342.       spinner still has at least one long side uncovered, in which case 
  343.       both ends are included in the count). 
  344.       
  345.       On his turn, a player is required to play a domino from his hand if 
  346.       he has any legal play. Otherwise, he must draw from the boneyard 
  347.       (repeatedly, if necessary) until either he obtains a domino that 
  348.       will play or the boneyard has been exhausted. 
  349.       
  350.       A player who succeeds in playing all the dominoes from his hand is 
  351.       said to have "dominoed"; the hand is then over, and the one who 
  352.       dominoed scores (to the nearest multiple of 5) the sum of all the 
  353.       spots in his opponent's hand (in addition to any score made on the 
  354.       last play). 
  355.       
  356.       If it should happen that neither player has a legal play and the 
  357.       boneyard is empty, the hand is "blocked". In this case, the players 
  358.       compare the sums of the spots in their respective hands, and the 
  359.       player with the lowest total receives (to the nearest multiple of 5)
  360.       ALL the points in his opponent's hand. 
  361.  
  362.       A game normally consists of 250 points. Several hands are required 
  363.       to complete a game, so the dominoes must be reshuffled and redrawn 
  364.       at the end of each hand. During a game, the Down alternates, so 
  365.       that if Player 1 downed the first hand, then Player 2 would down 
  366.       the second, Player 1 the third, and so on. (This process is greatly 
  367.       modified if the 'Highest Double Downs' option, described above, is 
  368.       used.) 
  369.       
  370.       The rules of dominoes are simple enough that anyone can easily 
  371.       remember them after playing only a few hands. Learning to play well 
  372.       is another matter, though, and the game is surprisingly 
  373.       challenging. 
  374.  
  375.  
  376.