天天育儿网,内容丰富有趣,生活中的好帮手!
天天育儿网 > java 骰子游戏_java 骰子游戏

java 骰子游戏_java 骰子游戏

时间:2021-10-10 03:41:22

相关推荐

java 骰子游戏_java 骰子游戏

题目要求编写后出现类似下面的显示1:Typinthenameofthefirstplayer:Anna2:Typinthenameofthefirstplayer:Anton3:Howmuchtotalpointisthegoalforthegame:1004:Anna,totalpoint:0,Round...

题目要求编写后出现类似下面的显示

1:Typ in the name of the first player:Anna

2:Typ in the name of the first player:Anton

3:How much total point is the goal for the game:100

4:Anna,total point:0,Round point:0(r)0ll dice or(e)nd round:r

The dice rolled a 5

5:Anna,total point:0,Round point:5(r)0ll dice or(e)nd round:r

The dice rolled a 3

6:Anna,total point:0,Round point:8(r)0ll dice or(e)nd round:e

7:Now it is Antos' turn Anna scored 8 and has a total of 8

8:Anton,total point:0,Round point:0(r)0ll dice or(e)nd round:r

The dice rolled a 4

9:Anton,total point:0,Round point:4(r)0ll dice or(e)nd round:r

The dice rolled a 5

10:Anton,total point:0,Round point:9(r)0ll dice or(e)nd round:r

The dice rolled a 6

Anton lost it all,and has a total of 0-it is Anna's turn

PS: 每次选择r 是继续掷骰子 e 是结束 并累积前面的总分 在掷骰子 要是出现6 就这几次 的分数 为0 不包括 e 后保留的分数

我也没办法 就是老师布置的鬼问题 刚开学 第2个星期 给的这个鸟问题

展开

如果觉得《java 骰子游戏_java 骰子游戏》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。