⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bj.6

📁 unix v7是最后一个广泛发布的研究型UNIX版本
💻 6
字号:
.TH BJ 6 .SH NAMEbj \- the game of black jack.SH SYNOPSIS.B /usr/games/bj.SH DESCRIPTION.I Bjis a serious attempt atsimulating the dealerin the game of black jack (or twenty-one)as might be found in Reno.The following rules apply:.HP 5The bet is $2 every hand..IPA player `natural' (black jack) pays $3.A dealer natural loses $2.Both dealer and player naturalsis a `push' (no money exchange)..IPIf the dealer has an ace up,the player is allowed to make an `insurance'bet against the chance of a dealer natural.If this bet is not taken, play resumes as normal.If the bet is taken, it is a side betwhere the player wins $2 if the dealer hasa natural and loses $1 if the dealer does not..IPIf the player is dealt two cardsof the same value, he is allowed to`double'.He is allowed to play twohands, each with one of these cards.(The bet is doubled also; $2 on each hand.).IPIf a dealt handhas a total of ten or eleven,the player may `double down'.He may double the bet ($2 to $4)and receive exactly one more card on that hand..IPUnder normal play,the player may `hit' (draw a card)as long as his total is not over twenty-one.If the player `busts' (goes over twenty-one),the dealer wins the bet..IPWhen the player `stands' (decides not to hit),the dealer hits until he attainsa total of seventeen or more.If the dealer busts, the player wins the bet..IPIf both player and dealer stand,the one with the largest total wins.A tie is a push..PPThe machine deals and keeps score.The following questions will be asked atappropriate times.Each question isanswered by.B yfollowed by a new line for `yes',or just new line for `no'..PP?		(means, `do you want a hit?').brInsurance?.brDouble down?.PPEvery time the deck is shuffled,the dealer so states and the `action' (total bet)and `standing' (total won or lost)is printed.To exit, hit the interrupt key (DEL)and the action and standing will be printed.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -