文件名称:chuquan.zip
介绍说明--下载内容均来自于网络,请自行研究使用
采用面向对象思想设计和编写“石头剪子布”游戏.
参考设计:
玩家类(父类, 包含姓名、积分属性,出拳方法)
电脑玩家类(子类,重写出拳方法)
人玩家类(子类,重写出拳方法)
裁判类(负责判断两个玩家出拳的大小并反馈输赢结果)
游戏控制类(包含两个玩家和一个裁判,提供游戏过程控制方法完成游戏流程)
测试类(入口main),The design of object-oriented thinking and preparation of stone scissors cloth game player class reference design: the players class (parent class that contains the name, integral properties, punching method) computer player class (subclass rewrite punches methods) people game control class the referee class (subclass rewrite punching method) (responsible for determining the size of the two players punching and feedback to the winners and losers) (includes two players and a referee, game process control method to complete the game flow) test class (entrance main)
参考设计:
玩家类(父类, 包含姓名、积分属性,出拳方法)
电脑玩家类(子类,重写出拳方法)
人玩家类(子类,重写出拳方法)
裁判类(负责判断两个玩家出拳的大小并反馈输赢结果)
游戏控制类(包含两个玩家和一个裁判,提供游戏过程控制方法完成游戏流程)
测试类(入口main),The design of object-oriented thinking and preparation of stone scissors cloth game player class reference design: the players class (parent class that contains the name, integral properties, punching method) computer player class (subclass rewrite punches methods) people game control class the referee class (subclass rewrite punching method) (responsible for determining the size of the two players punching and feedback to the winners and losers) (includes two players and a referee, game process control method to complete the game flow) test class (entrance main)
(系统自动生成,下载前可以参看下载内容)