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个星期 给的这个鸟问题

展开

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值