[机器人] Craps小游戏

[复制链接]
发表于 2022-9-29 09:38:41
游戏规则:玩家掷两次骰子。每个骰子有六个面,点数分别为1到6。骰子停下来后,计算两个骰子向上面得点数之和。假如首次掷的和事7或11,则玩家赢、假如和为2,3或12,则玩家输,庄家赢。假如和为4,5,6,8,9或10,则这个和就变成玩家的“点数”(称为craps),持续掷骰子。假如投的点数之和等于点数则玩家赢;假如等于7则玩家输;否则在投骰子直至分出输赢。本资料共包括以下附件:
Craps.java
.....太多文件了略.....

(Game Rules: Players roll the dice twice. Each dice has six sides, numbered from 1 to 6. After the dice come to a stop, calculate the sum of the points from the two dice facing up. If the first roll is 7 or 11, the player wins, if the sum is 2, 3 or 12, the player loses and the banker wins. If the sum is 4, 5, 6, 8, 9, or 10, then this sum becomes the player's "points" (called craps), which keep rolling the dice. If the sum of the rolled points is equal to the number of points, the player wins; if it is equal to 7, the player loses; otherwise, the dice are rolled until the winner or loser is divided. This document includes the following attachments:
Craps.java
.....too many files .....)

[下载]09384190021.rar




上一篇:java教程
下一篇:MFC类库详解 chm格式,用了很多年了。

使用道具 举报

Archiver|手机版|小黑屋|吾爱开源 |网站地图

Copyright 2011 - 2012 Lnqq.NET.All Rights Reserved( ICP备案粤ICP备14042591号-1粤ICP14042591号 )

关于本站 - 版权申明 - 侵删联系 - Ln Studio! - 广告联系

本站资源来自互联网,仅供用户测试使用,相关版权归原作者所有

快速回复 返回顶部 返回列表