猜数字游戏

上传者: qq406736552 | 上传时间: 2019-12-21 20:30:41 | 文件大小: 166KB | 文件类型: zip
完成一个猜数字的GUI游戏。 开始游戏后,产生一个没有重复数字的4位随机数,用户每猜一个数字,显示出“完全猜中的数字个数”和“猜中数字但位置错误的数字个数”,比如nAmB,数字n表示猜中的位置正确的数字个数,数字m表示数字正确而位置不对的数字个数。例如,正确答案为5234,如果用户猜5346,则显示:1A2B,数字1表示数字5及其位置猜对了,数字3和4这两个数字猜对了,但是位置没对,记为2B。然后,用户根据游戏提示的信息继续猜,直到猜中为止。同时设计规则,根据猜中的次数计算积分,并可以显示不同用户的排行榜。 注意:因为BGM因为太大被我去掉了

文件下载

资源详情

[{"title":"( 34 个子文件 166KB ) 猜数字游戏","children":[{"title":"GuessWhat","children":[{"title":"manifest.mf <span style='color:#111;'> 85B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"Load.java <span style='color:#111;'> 7.51KB </span>","children":null,"spread":false},{"title":"Load.form <span style='color:#111;'> 6.39KB </span>","children":null,"spread":false},{"title":"Asserts.java <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false},{"title":"User.java <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"sounds","children":[{"title":"empty.wav <span style='color:#111;'> 450B </span>","children":null,"spread":false},{"title":"buttoneffect.wav <span style='color:#111;'> 2.68KB </span>","children":null,"spread":false}],"spread":true},{"title":"NumGenerator.java <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"BGM.java <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false},{"title":"Game.java <span style='color:#111;'> 20.90KB </span>","children":null,"spread":false},{"title":"Adjust.form <span style='color:#111;'> 5.59KB </span>","children":null,"spread":false},{"title":"UserManager.java <span style='color:#111;'> 5.51KB </span>","children":null,"spread":false},{"title":"Game.form <span style='color:#111;'> 20.32KB </span>","children":null,"spread":false},{"title":"Adjust.java <span style='color:#111;'> 7.26KB </span>","children":null,"spread":false},{"title":"image","children":[{"title":"list.jpg <span style='color:#111;'> 2.68KB </span>","children":null,"spread":false},{"title":"down.jpg <span style='color:#111;'> 5.43KB </span>","children":null,"spread":false},{"title":"adjust.jpg <span style='color:#111;'> 5.35KB </span>","children":null,"spread":false},{"title":"up.png <span style='color:#111;'> 3.77KB </span>","children":null,"spread":false},{"title":"up.jpg <span style='color:#111;'> 5.49KB </span>","children":null,"spread":false},{"title":"dialog.jpg <span style='color:#111;'> 17.85KB </span>","children":null,"spread":false},{"title":"background.jpg <span style='color:#111;'> 79.90KB </span>","children":null,"spread":false},{"title":"down.png <span style='color:#111;'> 3.81KB </span>","children":null,"spread":false},{"title":"ok.jpg <span style='color:#111;'> 5.16KB </span>","children":null,"spread":false},{"title":"label.jpg <span style='color:#111;'> 5.65KB </span>","children":null,"spread":false}],"spread":false},{"title":"GuessWhat.java <span style='color:#111;'> 3.33KB </span>","children":null,"spread":false},{"title":"ControlPanel.form <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false},{"title":"ControlPanel.java <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false}],"spread":false},{"title":"test","children":null,"spread":false},{"title":"build.xml <span style='color:#111;'> 3.53KB </span>","children":null,"spread":false},{"title":"nbproject","children":[{"title":"genfiles.properties <span style='color:#111;'> 475B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 2.57KB </span>","children":null,"spread":false},{"title":"private","children":[{"title":"private.xml <span style='color:#111;'> 485B </span>","children":null,"spread":false},{"title":"private.properties <span style='color:#111;'> 111B </span>","children":null,"spread":false}],"spread":true},{"title":"build-impl.xml <span style='color:#111;'> 77.47KB </span>","children":null,"spread":false},{"title":"project.xml <span style='color:#111;'> 517B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明