C-program-for-game

所属分类:其他游戏
开发工具:C++ Builder
文件大小:7KB
下载次数:2
上传日期:2011-03-16 14:27:55
上 传 者yqsally
说明:  掷骰子游戏: 两人玩骰子,游戏规则如下: 两人轮流掷骰子,每次掷两个,每人最多掷10次。 将每人每次的分值累加计分 当两个骰子点数都为6时,计8分;当两个点数相等且不为两个6时,计7分;当两个点数不一样时,计其中点数较小的骰子的点数。 结束条件:当双方都掷10次或经过5次后一方累计分数为另一方的两倍。最后显示双方分数并判定优胜者。
(Dice games: two dice, game rules are as follows: two dice in turn, each throwing two, throwing 10 times per person. The cumulative score of each person scoring points when two dice are 6, the total 8 points when two points are equal and no two 6, with 7 points when two points are not the same as when the smaller total number of points which dice. End conditions: when both parties after throwing 10 times or 5 times the cumulative score on the other side twice. Show scores of both sides and determine the final winners.)

文件列表:
C program for game.doc (36864, 2011-03-16)

近期下载者

相关文件


收藏者