home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / games / cribbage / cribbage.doc next >
Text File  |  1985-11-22  |  11KB  |  349 lines

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