文件名称:caiquan
介绍说明--下载内容均来自于网络,请自行研究使用
个只供自己玩的小程序(石头剪子布)只供用户键入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