文件名称: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)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
chuquan/
chuquan/Controlplay.java
chuquan/FingerGuessing.java
chuquan/Judge.java
chuquan/Pcplay.java
chuquan/Play.java
chuquan/Pplay.java
chuquan/Testplay.java
chuquan/Controlplay.java
chuquan/FingerGuessing.java
chuquan/Judge.java
chuquan/Pcplay.java
chuquan/Play.java
chuquan/Pplay.java
chuquan/Testplay.java
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.