文件名称:C-program-for-game
介绍说明--下载内容均来自于网络,请自行研究使用
掷骰子游戏:
两人玩骰子,游戏规则如下:
两人轮流掷骰子,每次掷两个,每人最多掷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.
两人玩骰子,游戏规则如下:
两人轮流掷骰子,每次掷两个,每人最多掷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