文件名称:caiquan
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.78kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
个只供自己玩的小程序(石头剪子布)只供用户键入play1(玩家1的拳项)和play2(玩家2的拳项)然后才能进行常规的游戏。
现在想改进一下,仅输入play1(玩家1的拳项),然后像下面的if语句一样每次进行play1和电脑随机数(3以内不包括0)的比较,得出相应的结果显示(比如我程序中的puts()函数)。-One only play a small program (the stone scissors cloth) is for users to type play1 (players 1 boxing) and the play2 (players 2 boxing) before the regular game. Want to improve, only input play1 (players 1 boxing), then the same as the if statement below each play1 and computer-generated random number (less than 3 does not include 0) comparison, the results show (like me program the puts () function).
现在想改进一下,仅输入play1(玩家1的拳项),然后像下面的if语句一样每次进行play1和电脑随机数(3以内不包括0)的比较,得出相应的结果显示(比如我程序中的puts()函数)。-One only play a small program (the stone scissors cloth) is for users to type play1 (players 1 boxing) and the play2 (players 2 boxing) before the regular game. Want to improve, only input play1 (players 1 boxing), then the same as the if statement below each play1 and computer-generated random number (less than 3 does not include 0) comparison, the results show (like me program the puts () function).
(系统自动生成,下载前可以参看下载内容)
下载文件列表
猜拳小程序.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.