home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Crawly Crypt Collection 2
/
crawlyvol2.bin
/
games
/
cribbage
/
cribbage.doc
next >
Wrap
Text File
|
1985-11-22
|
11KB
|
349 lines
0660103030566
9[....................................................]
Ç
CadenzaCribbage(version1.9,May29,1988)
HardwareRequirements
ThisprogramshouldrunonanyAtariSTcomputerwithamonochrome
monitor.ThisprogramMAYrunoncolormonitorsinmedium
resolution(pleaseseetheBugssectionbelow).
DistributionofthisProgram
SinceCadenzaCribbageispublicdomain,youmayfreelydistribute
copiesoftheprogramtootherusers,usergroups,electronic
bulletinboards,etc.
TheRulesofCribbage
Preliminaries
Cribbageisatwoplayercardgame.Theplayerstaketurnsbeing
thedealer.Cardsarevaluedasfollows:aceisworth1,number
cardsareworththeirfacevalue,andtensandfacecardsare
worth10.
TheDeal
Whenthegamebegins,thedealerfirstdealssixcardstoboth
players.Theneachplayerselectstwocardsfromhis/herhand,
andplacesthemfacedowninapilecalledthecrib.Afterthe
cribisformed,thedealercutstherestofthepack,andturnsup
thetopcardofthelowerportion.Thiscardiscalledthe
starter.Ifthestarterisajack,thedealerscorestwopoints
"forhisheels".
Play
Afterthedealisfinishedandthecribisformed,andthestarter
isturnedupplayersalternatelyplayonecard,withthenon-
dealerplayingfirst.Thiscontinuesuntilaplayer,during
his/herturneithercannotplaywithoutmakingthetotalofthe
playedcardsgreaterthan31orissimplyoutofcards.
Atthispoint,iftheplayerisnotoutofcardstheplayermust
say"go",andtheplayer'sopponentscores1.Afterthegois
called,theplayerwhosaid"go"leadsforanotherseriesof
plays.Thecountstartsatzeroagain,andasalways,thetotal
oftheplayedcardscannotexceed31.
Whenaplayersays"go",thatplayer'sopponentmustplayuntil
he/sheisoutofcards,orhasnocardthatwouldnotmakethe
totaloftheplayedcardsgreaterthan31.Consequently,this
playercouldplaymorethanonecard.
Ifaplayercannotplaybecausehe/shehasnocards,theother
playerplaysouthis/herhand,butisnotgivenanyadditional
score.Astheplayerplaysouthis/herhand,ifthetotalofthe
playedcardswouldexceed31,theplayedcardsaremovedawayand
thecountstartsatzeroagain.
Scoring
Scoringisdoneduringplay(seeScoringInPlay),andalso
immediatelyafterplayceases(seeShowing).
ScoringInPlay
Whenaplayersays"go",theotherplayerscores1.
31
Aplayerscores2forbringingthetotaloftheplayedcardsto
exactly31.
LastCard
Aplayerreceives1forplayingthelastcard,or2ifthisbrings
thetotalofplayedcardstoexactly31.
15s
Aplayerreceives2forbringingthetotaloftheplayedcardsto
exactly15.
Pairs
Ifaplayerplaysacardofthesamerankasthecardplayed
immediatelybefore(i.e.iftheplayerformsapair),theplayer
scores2.Iftheplayerplaysacardofrankequaltotheranks
ofthepreviouslyplayed2cards,he/shescores6.Iftheplayer
playsacardofrankequaltotheranksofthepreviouslyplayed3
cards,theplayerreceivesascoreof12.(Notethatrankshould
notbeconfusedwithvalue:10andKingareofequalvaluebut
differentranks).
Runs
Ifaplayerplaysacardthatresultsinarunoflengthgreater
than2,theplayerreceivesascoreequaltothenumberofcards
intherun.Thecardsintherunneednotbeordered,butthere
maynotbeany"foreign"cardsinthemiddleoftherun.For
example,theplayerscores3forthefollowing:
A3576(5,7,&6forma3-run)
Andthefollowingisnotarun:
5J67(theJackisforeign,sothe5,6,&7donotformarun)
Showing
Afterplayiscomplete,eachplayerturnsallofhis/hercards
faceup,thecribisturnedup,andadditionalscoringisdonefor
eachplayer.Thisprocessiscalled"showing".Cardsareshown
inthefollowingorder:non-dealer'shand,dealer'shand,andcrib
(whichbelongstothedealer).Foreachhand(dealer's,non-
dealer's,andcrib)thestarterformsafifthcard).Thedealer
receivesthescoreforthecrib.
15
Eachcombinationof15scores2points.Forexample:
Player'sHand Starter
A783 7
Theplayerintheaboveexamplehas2fifteens:
1: 7&8bothfromplayer'shand
2: 8fromplayer'shandand7(starter)
Forthetwofifteens,theplayerscores4.
Pairs
Aplayerscores2foreachpair,6foreach3ofakind,and12
foreach4ofakind.Forexample:
Player'sHand Starter
4555 3
Intheaboveexample,theplayerreceives6forthe3ofakind
(i.e.the35's).Theplayerdoesnothaveanypairs(the3ofa
kindcannotbesplittoformpairs).Iftheplayerhad4ofa
kind,itcouldnotbespliteither.
Runs
Foreachcombinationthataplayerhasthatformsarunoflength
3ormore,theplayerscoresthelengthoftherun.Forexample:
Player'sHand Starter
A237 2
Intheaboveexample,theplayerhastwo3-runs:
1: A23 (allcardsfromplayer'shand)
2: A23 (usingthestarter)
Theplayerthenreceives6:3foreither3-run.
Flush
Iftheplayerhas4cardsofthesamesuitinhis/herhand(not
includingthecribandstarter),theplayerreceives4.Ifthe
starterisalsoofthesamesuit,theplayerreceives5.Ifthe
cribandstarterareallofthesamesuit,theplayerreceives5.
HisNobs
Ifaplayerhasajackwiththesamesuitasthestarter,the
playerscores1for"hisnobs".
GameLength
Thegamecanbeplayed"oncearound"or"twicearound."Ifthe
gameisplayedoncearound,playcontinuesuntiloneplayer
achievesascoreof61ormore.Ifthegameisplayedtwice
around(asismostoftenthecase),playceaseswhenaplayergets
ascoreof121orgreater.
Lurch
Ifthegameisplayedoncearoundandtheloserreceivesascore
lessthan31,thatplayeris"lurched",andthewinnerreceivesan
additionalgamescore.Ifthegameisplayedtwicearoundandthe
loserreceivesascorelessthan61,thewinnerisgivenan
additionalgamescoreforthelurch.
AdditionalInformationaboutCribbage
Thefollowingtextswillprovideadditionalinformationaboutthe
strategyofCribbage:
Hoyle'sModernEncyclopediaofCardGames(HighlyRecommended)
WalterB.Gibson
DolphinBooks,DoubledayandCo.,Inc.,GardenCity,NewYork
ISBN0-385-07680-0
Hoyle'sRulesofGames,SecondRevisedEdition
AlbertH.MoreheadandGeoffreyMott-Smith
SignetNewAmericanLibrary,NALPenguin,Inc.,NewYork
ISBN0-451-14842-8
RunningtheProgram
Oncetheprogramhasbeenstartedyouarereadytoplay.However,
therearemenusthatwillallowyoutosetthelengthofthegame,
disableorenablex-rayvision,andstartanewgameorquitthe
program.Menuoptionscanbechangedbeforethestartofanygame
(notjustbeforethefirstgame).Menuoptionsanddesk
accessoriescannotbeaccessedinthemiddleofagame,however.
TheGameLengthMenu
Thismenuallowsyoutoplayagameto121(twicearound)orto61
(oncearound).Bydefaultthegamewillgoto121.
TheX-RayVisionMenu
LikeSuperman,youmaychoosetohavex-rayvisionwhichwill
allowyoutoseeallofyouropponent'scards.Thisfeatureis
disabledbydefault.
TheWhoPlays?Menu
Bydefaultyouplaythecomputer.However,ifyoueverwantto
watchthecomputerplayitself,selectthe"Iplayforyou"
submenu.Thecomputerwillplayitselfuntilyoupressthe<UNDO>
key.
TheStart/StopMenu
Whenyouarereadytoplayagame(afterthemenuoptionsareto
yourliking),selecttheStartNewGamesubmenu.Whenyouwantto
quittheprogram,selecttheQuitProgramsubmenu.
ScreenLayoutandCardSelection
Youandthecomputerwilltaketurnsbeingthedealer,butthe
computerisalwaysthedealerforthefirsthandofagame.The
scoreboardisdisplayedasfollows:
Me:<gameswon>/<currentscore>You:<gameswon>/<currentscore>
RT:<runningtotalofplayedcards>
Throughouttheprogram,thecomputerisreferredtoas"I",and
thehumanplayeras"you".
Toselectacard,placethemousearrowontopofthedesired
cardandthenpressandreleasetheleftmousebutton.Whenyou
playagivencard,itisturnedover.Ifyouattempttoplaya
cardthatcannotlegallybeplayed,thecomputer'sbellwill
sound,andyouwillhavetochooseanothercardtoplay.
Thecomputer'scardsaredrawnintheuppermostrowonthescreen,
andyourcardsaredrawnimmediatelybelowthem.Thecribis
drawninarowbelowthecomputer'scards,andthestarteris
drawnbelowthecrib,andtotheright.Ascardsareplayed,they
aredrawnonthebottomofthescreenfromlefttoright.The
humanplayer'scardsaredrawnwithsolidborders,andthe
computer'scardshavedottedborders.
QuittingintheMiddleofaGame
YoucanquitinthemiddleofagamebypressingtheUNDOkey.
However,afteryoupressUNDOplaywillnotendimmediately-if
youareinthemiddleofplayingahand,playwillcontinueuntil
thathandiscompletelyfinished.PressingtheUNDOwillonly
allowyoutoquitthecurrentgame.Ifyouwanttoquitthe
program,selecttheQuitProgrammenuoptionafteryouhavequit
thecurrentgame.
Payment
Ifyoulikethisprogram,pleasesend$5.00UStothefollowing
address:
EricBergman-Terrell
CadenzaSoftware,Ltd.
1450West116thAvenue,#21
Westminster,CO80234
U.S.A.
For$10.00+$2.00postageyoumayorderadiskcontainingthe
completesourcecodeforthisprogram,writteninOSSPersonal
Pascalversion2.0.
Youmaywritetothesameaddresstoreportbugs,request
additionalinformation,suggestimprovementsintheprogram,etc.
Ifyouwantareply,pleaseincludereturnpostage(2IRCsfor
thoseoutsidetheU.S.A.).
Bugs:
Whenthecomputerplaysthelastcard,andthisbringsthetotal
oftheplayedcardsto31,theuserisobligedtopresstheleft
mousebuttontwice,ratherthanjustonce.
Thisprogramfrequentlyerasesandredrawsthescreen.This
maycauseproblemswithsomedeskaccessories.
Sincethisprogramwasdevelopedonamonochromesystem,theremay
besomebugswhenitisrunonacolormonitor.
Enjoytheprogram!