| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1034 人关注过本帖
标题:我写的Java程序有错误,希望大家帮我看看
只看楼主 加入收藏
a81816478
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2013-12-4
结帖率:0
收藏
已结贴  问题点数:20 回复次数:7 
我写的Java程序有错误,希望大家帮我看看
Implement a simplified Baccarat game with betting between 1 user (the "player") and the computer (the "banker") for 10 rounds. Baccarat is a comparing card game played between the two hands, the "player" and the "banker." Each baccarat coup has three possible outcomes: "player" (player has the higher score), "banker," and "tie."The cards have a point value: cards 2–9 are worth face value (in points); 10s, Js, Qs and Ks have no point value (i.e. are worth zero); Aces are worth 1 point. Hands are valued according to the rightmost digit of the sum of their constituent cards: for example, a hand consisting of 2 and 3 is worth 5, but a hand consisting of 6 and 7 is worth 3 (i.e. the 3 being rightmost digit in the combined points total: 13).The player starts with 50 $1 chips. The user must place a bet of maximum 5 chips for each round. Each baccarat coup has three possible outcomes: "player" wins (even win: 1:1), "banker," wins and "tie." Betting example: Lets say that you have $50 and you bet $5. If you win, you will get your $5 bet back plus another $5. Your purse will be $55. If you loose, you will loose your $5 bet. Your purse will be $45.For each round (coup), two cards are dealt face up to each hand ("player" and "banker"). If either Player or Banker or both achieve a total of 8 or 9 at this stage, the coup is finished and the result is announced: Player win, a Banker win, or tie. If neither the Player nor Banker is dealt a total of 8 or 9 in the first two cards (known as a "natural"), the tableau is consulted, first for Player's rule, then Banker's. If Player has an initial total of 0–5, he draws a third card. If Player has an initial total of 6 or 7, he stands.If Player stood pat (i.e., has only two cards), the banker regards only his own hand and acts according to the same rule as Player. That means Banker draws a third card with hands 0–5 and stands with 6 or 7. If Player drew a third card, the Banker acts according to the following more complex rules:- If Player drew a 2 or 3, Banker draws with 0–4, and stands with 5–7.- If Player drew a 4 or 5, Banker draws with 0–5, and stands with 6–7.- If Player drew a 6 or 7, Banker draws with 0–6, and stands with 7.- If Player drew an 8, Banker draws with 0–2, and stands with 3–7.- If Player drew an ace, 9, 10, or face-card, the Banker draws with 0–3, and stands with 4–7.The program will deal the cards according to the tableau and will announce the winning hand: either Player or Banker.



搜索更多相关主题的帖子: simplified comparing computer possible between 
2013-12-04 23:52
韶志
Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19
来 自:斗气大陆
等 级:贵宾
威 望:44
帖 子:2223
专家分:13592
注 册:2013-3-22
收藏
得分:4 
这是什么...  不懂鸟语啊...

三十年河东,三十年河西,莫欺少年穷!
2013-12-05 11:54
java小蚂蚁
Rank: 11Rank: 11Rank: 11Rank: 11
来 自:上海
等 级:贵宾
威 望:18
帖 子:558
专家分:2186
注 册:2013-7-2
收藏
得分:4 
我晕,你发表之后有没有看看,发的是什么?
有格式标签的啊

学海无涯#¥%……&*(
2013-12-05 15:44
java小蚂蚁
Rank: 11Rank: 11Rank: 11Rank: 11
来 自:上海
等 级:贵宾
威 望:18
帖 子:558
专家分:2186
注 册:2013-7-2
收藏
得分:0 
话说这是哪门子Java程序

学海无涯#¥%……&*(
2013-12-05 15:46
无奈人
Rank: 1
等 级:新手上路
帖 子:1
专家分:4
注 册:2013-12-5
收藏
得分:4 
回复 楼主 a81816478
。。。。。
2013-12-05 20:04
sunkaidong
Rank: 4
来 自:南京师范大学
等 级:贵宾
威 望:12
帖 子:4496
专家分:141
注 册:2006-12-28
收藏
得分:4 
这个是需求规格

学习需要安静。。海盗要重新来过。。
2013-12-06 17:55
学编程啊
Rank: 3Rank: 3
等 级:论坛游侠
帖 子:66
专家分:110
注 册:2012-7-25
收藏
得分:4 
这还真是程序错误啊。。。
2013-12-09 21:20
java小蚂蚁
Rank: 11Rank: 11Rank: 11Rank: 11
来 自:上海
等 级:贵宾
威 望:18
帖 子:558
专家分:2186
注 册:2013-7-2
收藏
得分:0 
像是需求说明……你看仔细,自己贴出来的是什么,然后翻译下自己看看

学海无涯#¥%……&*(
2013-12-10 12:53
快速回复:我写的Java程序有错误,希望大家帮我看看
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.033330 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved