home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / games / cribbage / cribbage.txt < prev   
Text File  |  1985-11-22  |  11KB  |  347 lines

  1.  
  2.  
  3.            Cadenza Cribbage (version 1.9, May 29, 1988)
  4.  
  5.  
  6. Hardware Requirements
  7.  
  8. This program should run on any Atari ST computer with a monochrome 
  9. monitor.   This  program  MAY  run on  color  monitors  in  medium 
  10. resolution (please see the Bugs section below).
  11.  
  12.  
  13. Distribution of this Program
  14.  
  15. Since Cadenza Cribbage is public domain, you may freely distribute 
  16. copies  of the program to other  users,  user  groups,  electronic 
  17. bulletin boards, etc.
  18.  
  19.  
  20. The Rules of Cribbage
  21.  
  22. Preliminaries
  23.  
  24. Cribbage is a two player card game.   The players take turns being 
  25. the dealer.   Cards are valued as follows:  ace is worth 1, number 
  26. cards  are  worth their face value,  and tens and face  cards  are 
  27. worth 10.
  28.  
  29. The Deal
  30.  
  31. When  the game begins,  the dealer first deals six cards  to  both 
  32. players.   Then  each player selects two cards from his/her  hand, 
  33. and  places them face down in a pile called the crib.   After  the 
  34. crib is formed, the dealer cuts the rest of the pack, and turns up 
  35. the  top  card  of the lower portion.   This card  is  called  the 
  36. starter.   If the starter is a jack,  the dealer scores two points 
  37. "for his heels".
  38.  
  39. Play
  40.  
  41. After the deal is finished and the crib is formed, and the starter 
  42. is  turned  up players alternately play one card,  with  the  non-
  43. dealer  playing  first.   This continues until  a  player,  during 
  44. his/her  turn either cannot play without making the total  of  the 
  45. played cards greater than 31 or is simply out of cards.
  46.  
  47. At this point,  if the player is not out of cards the player  must 
  48. say  "go",  and the player's opponent scores 1.   After the go  is 
  49. called,  the  player  who said "go" leads for  another  series  of 
  50. plays.   The count starts at zero again,  and as always, the total 
  51. of the played cards cannot exceed 31.
  52.  
  53.  
  54.  
  55.  
  56. When  a player says "go",  that player's opponent must play  until 
  57. he/she  is out of cards,  or has no card that would not  make  the 
  58. total  of the played cards greater than  31.   Consequently,  this 
  59. player could play more than one card.
  60.  
  61. If  a player cannot play because he/she has no  cards,  the  other 
  62. player  plays out his/her hand,  but is not given  any  additional 
  63. score.   As the player plays out his/her hand, if the total of the 
  64. played cards would exceed 31,  the played cards are moved away and 
  65. the count starts at zero again.
  66.  
  67.  
  68. Scoring
  69.  
  70. Scoring  is  done  during play (see Scoring  In  Play),  and  also 
  71. immediately after play ceases (see Showing).
  72.  
  73.  
  74. Scoring In Play
  75.  
  76. When a player says "go", the other player scores 1.  
  77.  
  78. 31
  79.  
  80. A  player scores 2 for bringing the total of the played  cards  to 
  81. exactly 31.  
  82.  
  83. Last Card
  84.  
  85. A player receives 1 for playing the last card, or 2 if this brings 
  86. the total of played cards to exactly 31.
  87.  
  88. 15s
  89.  
  90. A player receives 2 for bringing the total of the played cards  to 
  91. exactly 15.
  92.  
  93. Pairs
  94.  
  95. If  a  player  plays a card of the same rank as  the  card  played 
  96. immediately before (i.e.  if the player forms a pair),  the player 
  97. scores 2.   If the player plays a card of rank equal to the  ranks 
  98. of the previously played 2 cards,  he/she scores 6.  If the player 
  99. plays a card of rank equal to the ranks of the previously played 3 
  100. cards,  the player receives a score of 12.  (Note that rank should 
  101. not  be confused with value:  10 and King are of equal  value  but 
  102. different ranks).
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110. Runs
  111.  
  112. If  a player plays a card that results in a run of length  greater 
  113. than 2,  the player receives a score equal to the number of  cards 
  114. in the run.   The cards in the run need not be ordered,  but there 
  115. may  not  be any "foreign" cards in the middle of  the  run.   For 
  116. example, the player scores 3 for the following:
  117.  
  118. A 3 5 7 6 (5, 7, & 6 form a 3-run)
  119.  
  120. And the following is not a run:
  121.  
  122. 5 J 6 7 (the Jack is foreign, so the 5, 6, & 7 do not form a run)
  123.  
  124. Showing
  125.  
  126. After  play is complete,  each player turns all of  his/her  cards 
  127. face up, the crib is turned up, and additional scoring is done for 
  128. each player.   This process is called "showing".   Cards are shown 
  129. in the following order: non-dealer's hand, dealer's hand, and crib 
  130. (which  belongs to the dealer).   For each  hand  (dealer's,  non-
  131. dealer's,  and crib) the starter forms a fifth card).   The dealer 
  132. receives the score for the crib.
  133.  
  134. 15
  135.  
  136. Each combination of 15 scores 2 points.  For example:
  137.  
  138. Player's Hand       Starter
  139.  
  140. A 7 8 3             7
  141.  
  142. The  player in the above example has 2 fifteens:
  143.  
  144. 1:   7 & 8 both from player's hand
  145. 2:   8 from player's hand and 7 (starter)
  146.  
  147. For the two fifteens, the player scores 4.
  148.  
  149. Pairs
  150.  
  151. A player scores 2 for each pair,  6 for each 3 of a kind,  and  12 
  152. for each 4 of a kind.  For example:
  153.  
  154. Player's Hand       Starter
  155.  
  156. 4 5 5 5             3
  157.  
  158. In  the above example,  the player receives 6 for the 3 of a  kind 
  159. (i.e.  the 3 5's).  The player does not have any pairs (the 3 of a 
  160. kind  cannot be split to form pairs).   If the player had 4  of  a 
  161. kind, it could not be split either.
  162.  
  163.  
  164. Runs
  165.  
  166. For each combination that a player has that forms a run of  length 
  167. 3 or more, the player scores the length of the run.  For example:
  168.  
  169. Player's Hand       Starter
  170.  
  171. A 2 3 7             2
  172.  
  173. In the above example, the player has two 3-runs:
  174.  
  175. 1:   A 2 3   (all cards from player's hand)
  176. 2:   A 2 3   (using the starter)
  177.  
  178. The player then receives 6:  3 for either 3-run.
  179.  
  180. Flush
  181.  
  182. If  the player has 4 cards of the same suit in his/her  hand  (not 
  183. including the crib and starter),  the player receives 4.   If  the 
  184. starter is also of the same suit,  the player receives 5.   If the 
  185. crib and starter are all of the same suit, the player receives 5.
  186.  
  187. His Nobs
  188.  
  189. If  a  player has a jack with the same suit as  the  starter,  the 
  190. player scores 1 for "his nobs".
  191.  
  192. Game Length
  193.  
  194. The  game can be played "once around" or "twice around."   If  the 
  195. game  is  played  once around,  play continues  until  one  player 
  196. achieves  a  score of 61 or more.   If the game  is  played  twice 
  197. around (as is most often the case), play ceases when a player gets 
  198. a score of 121 or greater.
  199.  
  200. Lurch
  201.  
  202. If  the game is played once around and the loser receives a  score 
  203. less than 31, that player is "lurched", and the winner receives an 
  204. additional game score.  If the game is played twice around and the 
  205. loser  receives  a  score less than 61,  the winner  is  given  an 
  206. additional game score for the lurch.
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218. Additional Information about Cribbage
  219.  
  220. The following texts will provide additional information about  the 
  221. strategy of Cribbage: 
  222.  
  223. Hoyle's Modern Encyclopedia of Card Games (Highly Recommended)
  224. Walter B. Gibson
  225. Dolphin Books, Doubleday and Co., Inc., Garden City, New York
  226. ISBN 0-385-07680-0
  227.  
  228. Hoyle's Rules of Games, Second Revised Edition
  229. Albert H. Morehead and Geoffrey Mott-Smith
  230. Signet New American Library, NAL Penguin, Inc., New York
  231. ISBN 0-451-14842-8
  232.  
  233.  
  234. Running the Program
  235.  
  236. Once the program has been started you are ready to play.  However, 
  237. there are menus that will allow you to set the length of the game, 
  238. disable or enable x-ray vision,  and start a new game or quit  the 
  239. program.  Menu options can be changed before the start of any game 
  240. (not  just  before  the  first  game).    Menu  options  and  desk 
  241. accessories cannot be accessed in the middle of a game, however.
  242.  
  243. The Game Length Menu
  244.  
  245. This menu allows you to play a game to 121 (twice around) or to 61 
  246. (once around).  By default the game will go to 121.
  247.  
  248.  
  249. The X-Ray Vision Menu
  250.  
  251. Like  Superman,  you  may choose to have x-ray vision  which  will 
  252. allow  you to see all of your opponent's cards.   This feature  is 
  253. disabled by default.
  254.  
  255.  
  256. The Who Plays? Menu
  257.  
  258. By default you play the computer.   However,  if you ever want  to 
  259. watch  the  computer  play itself,  select the "I  play  for  you" 
  260. submenu.  The computer will play itself until you press the <UNDO> 
  261. key. 
  262.  
  263.  
  264. The Start/Stop Menu
  265.  
  266. When  you are ready to play a game (after the menu options are  to 
  267. your liking), select the Start New Game submenu.  When you want to 
  268. quit the program, select the Quit Program submenu.
  269.  
  270.  
  271.  
  272. Screen Layout and Card Selection
  273.  
  274. You  and the computer will take turns being the  dealer,  but  the 
  275. computer is always the dealer for the first hand of a  game.   The 
  276. scoreboard is displayed as follows:
  277.  
  278. Me:  <games won>/<current score> You:  <games won>/<current score> 
  279. RT:  <running total of played cards>
  280.  
  281. Throughout the program,  the computer is referred to as  "I",  and 
  282. the human player as "you".
  283.  
  284. To  select  a card,  place the mouse arrow on top of  the  desired 
  285. card and then press and release the left mouse button.   When  you 
  286. play a given card,  it is turned over.   If you attempt to play  a 
  287. card  that  cannot legally be played,  the  computer's  bell  will 
  288. sound, and you will have to choose another card to play.
  289.  
  290. The computer's cards are drawn in the uppermost row on the screen, 
  291. and  your  cards are drawn immediately below them.   The  crib  is 
  292. drawn  in  a row below the computer's cards,  and the  starter  is 
  293. drawn below the crib, and to the right.  As cards are played, they 
  294. are  drawn on the bottom of the screen from left  to  right.   The 
  295. human  player's  cards  are drawn  with  solid  borders,  and  the 
  296. computer's cards have dotted borders.
  297.  
  298. Quitting in the Middle of a Game
  299.  
  300. You  can  quit in the middle of a game by pressing the  UNDO  key.  
  301. However,  after you press UNDO play will not end immediately -  if 
  302. you are in the middle of playing a hand,  play will continue until 
  303. that  hand is completely finished.   Pressing the UNDO  will  only 
  304. allow  you  to quit the current game.   If you want  to  quit  the 
  305. program,  select the Quit Program menu option after you have  quit 
  306. the current game.
  307.  
  308.  
  309. Payment
  310.  
  311. If  you like this program,  please send $5.00 US to the  following 
  312. address:
  313.  
  314. Eric Bergman-Terrell
  315. Cadenza Software, Ltd.
  316. 1450 West 116th Avenue, #21
  317. Westminster, CO  80234
  318. U.S.A.
  319.  
  320. For  $10.00  + $2.00 postage you may order a disk  containing  the 
  321. complete  source code for this program,  written in  OSS  Personal 
  322. Pascal version 2.0.
  323.  
  324.  
  325.  
  326. You  may  write  to  the same  address  to  report  bugs,  request 
  327. additional information,  suggest improvements in the program, etc.  
  328. If  you want a reply,  please include return postage (2  IRCs  for 
  329. those outside the U.S.A.).
  330.  
  331.  
  332. Bugs:
  333.  
  334. When the computer plays the last card,  and this brings the  total 
  335. of the played cards to 31,  the user is obliged to press the  left 
  336. mouse button twice, rather than just once.
  337.  
  338. This  program  frequently erases and  redraws  the  screen.   This 
  339. may cause problems with some desk accessories.
  340.  
  341. Since this program was developed on a monochrome system, there may 
  342. be some bugs when it is run on a color monitor.
  343.  
  344.  
  345. Enjoy the program!
  346.  
  347.