Welcome![Sign In][Sign Up]
Location:
Search - 21di

Search list

[Windows Develop21dian

Description: 设计一个21点游戏,要求可以人人对战,要有游戏界面,可以由电脑判断输赢情况。 计算模型:由于要涉及到洗牌和发牌所以要由随机函数进行洗牌,通过for语句进行发牌,最后通过将每个人的点数相加得到总点数,进而判断输赢。 设计方案:用VC环境来设计游戏的界面,包括发牌按钮,拒绝要牌按钮,判断胜负按钮,以及牌和最终胜负的输出显示框。使用C语言并配合MFC进行程序的设计。-The design of a 21 o clock game, everyone is asking for war, we need to have the game interface, you can determine the winning or losing the case by computer. Calculation model: As the need to relate to shuffle and licensing it is necessary to carry out random shuffle function, through the for statement to conduct the licensing, and finally through the points of each person to be the total sum of points, and then judge the winning or losing. Design options: with VC games environment to design the interface, including the licensing button, and refused to license button, to determine the outcome of the button, as well as licensing and final outcome of the output display box. The use of C language and carry out procedures with MFC design.
Platform: | Size: 624640 | Author: miao | Hits:

CodeBus www.codebus.net