jsp猜数字游戏

上传者: u010640656 | 上传时间: 2022-04-26 16:43:24 | 文件大小: 1.6MB | 文件类型: ZIP
编写JSP程序,完成以下功能: 1. 编写login.jsp,登录时只输入一个昵称和密码。如果没有注册,需要注册新用户,检查昵称是否已经被其他用户使用。 2. 编写game.jsp, 每次游戏程序随机产生一个0-9之间的整数,要求玩家输入自己猜的数字,并对用户输入数字进行检查,进行如下提示: (1)如果用户猜对了,则提示:恭喜你,猜对了。结束本次游戏。 (2)如果用户猜错了,则提示:你猜的数字太(大或小)了。要求用户继续猜。 如果连续3次没有猜对,则提示:游戏失败。 一次游戏结束时,将用户本次猜数字情况记入“排行榜”。 然后询问用户是否继续新的游戏,果用户选择继续,则开始新一次游戏, 3. 排行榜页面,显示所有参加游戏的用户的游戏情况。 昵称游戏次数成功次数 ABC 10 8 XYX 11 7 ....... 4. 必须登录后才能进入游戏页面,而进入登录页面和排行榜页面,无须登录。 5. 用户档案、排行榜等内容存放在数据库中。

文件下载

资源详情

[{"title":"( 54 个子文件 1.6MB ) jsp猜数字游戏","children":[{"title":"guessingGame","children":[{"title":"build.xml <span style='color:#111;'> 3.42KB </span>","children":null,"spread":false},{"title":"dist","children":[{"title":"guessingGame.war <span style='color:#111;'> 862.91KB </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"conf","children":[{"title":"MANIFEST.MF <span style='color:#111;'> 25B </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"Backend","children":[{"title":"Databasedeal.java <span style='color:#111;'> 6.88KB </span>","children":null,"spread":false},{"title":"Gameset.java <span style='color:#111;'> 763B </span>","children":null,"spread":false},{"title":"playerBean.java <span style='color:#111;'> 841B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"nbproject","children":[{"title":"build-impl.xml <span style='color:#111;'> 79.65KB </span>","children":null,"spread":false},{"title":"customs.json <span style='color:#111;'> 178B </span>","children":null,"spread":false},{"title":"private","children":[{"title":"private.xml <span style='color:#111;'> 926B </span>","children":null,"spread":false},{"title":"private.properties <span style='color:#111;'> 503B </span>","children":null,"spread":false}],"spread":true},{"title":"ant-deploy.xml <span style='color:#111;'> 1.96KB </span>","children":null,"spread":false},{"title":"project.xml <span style='color:#111;'> 887B </span>","children":null,"spread":false},{"title":"genfiles.properties <span style='color:#111;'> 473B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 3.57KB </span>","children":null,"spread":false}],"spread":true},{"title":"web","children":[{"title":"css","children":[{"title":"pattern.css <span style='color:#111;'> 617B </span>","children":null,"spread":false}],"spread":true},{"title":"userInfo.jsp <span style='color:#111;'> 535B </span>","children":null,"spread":false},{"title":"rankList.jsp <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false},{"title":"rule.jsp <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"dealLogin.jsp <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"img","children":[{"title":"181.jpg <span style='color:#111;'> 15.25KB </span>","children":null,"spread":false}],"spread":true},{"title":"META-INF","children":[{"title":"context.xml <span style='color:#111;'> 93B </span>","children":null,"spread":false}],"spread":true},{"title":"WEB-INF","children":[{"title":"lib","children":null,"spread":false}],"spread":true},{"title":"game.jsp <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"dealsignup.jsp <span style='color:#111;'> 911B </span>","children":null,"spread":false},{"title":"signup.jsp <span style='color:#111;'> 2.59KB </span>","children":null,"spread":false},{"title":"dealGame.jsp <span style='color:#111;'> 3.47KB </span>","children":null,"spread":false},{"title":"login.jsp <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false},{"title":"index.jsp <span style='color:#111;'> 385B </span>","children":null,"spread":false},{"title":"homePage.jsp <span style='color:#111;'> 1.46KB </span>","children":null,"spread":false},{"title":"exitGame.jsp <span style='color:#111;'> 696B </span>","children":null,"spread":false},{"title":"errorExitRemind.jsp <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false}],"spread":false},{"title":"build","children":[{"title":"empty","children":null,"spread":false},{"title":"web","children":[{"title":"css","children":[{"title":"pattern.css <span style='color:#111;'> 617B </span>","children":null,"spread":false}],"spread":true},{"title":"userInfo.jsp <span style='color:#111;'> 535B </span>","children":null,"spread":false},{"title":"rankList.jsp <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false},{"title":"rule.jsp <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"dealLogin.jsp <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"img","children":[{"title":"181.jpg <span style='color:#111;'> 15.25KB </span>","children":null,"spread":false}],"spread":true},{"title":"META-INF","children":[{"title":"context.xml <span style='color:#111;'> 93B </span>","children":null,"spread":false},{"title":"MANIFEST.MF <span style='color:#111;'> 25B </span>","children":null,"spread":false}],"spread":false},{"title":"WEB-INF","children":[{"title":"classes","children":[{"title":"Backend","children":[{"title":"Databasedeal.java <span style='color:#111;'> 6.88KB </span>","children":null,"spread":false},{"title":"Gameset.class <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"playerBean.class <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false},{"title":"Databasedeal.class <span style='color:#111;'> 5.90KB </span>","children":null,"spread":false},{"title":"Gameset.java <span style='color:#111;'> 763B </span>","children":null,"spread":false},{"title":"playerBean.java <span style='color:#111;'> 841B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"lib","children":[{"title":"mysql-connector-java-5.1.23-bin.jar <span style='color:#111;'> 808.52KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"game.jsp <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"dealsignup.jsp <span style='color:#111;'> 911B </span>","children":null,"spread":false},{"title":"signup.jsp <span style='color:#111;'> 2.59KB </span>","children":null,"spread":false},{"title":"dealGame.jsp <span style='color:#111;'> 3.47KB </span>","children":null,"spread":false},{"title":"login.jsp <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false},{"title":"index.jsp <span style='color:#111;'> 385B </span>","children":null,"spread":false},{"title":"homePage.jsp <span style='color:#111;'> 1.46KB </span>","children":null,"spread":false},{"title":"exitGame.jsp <span style='color:#111;'> 696B </span>","children":null,"spread":false},{"title":"errorExitRemind.jsp <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false}],"spread":false},{"title":"generated-sources","children":[{"title":"ap-source-output","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • u013761812 :
    无法执行,也不知道怎么运行
    2015-06-23
  • xiaolove1993 :
    不够清晰明了
    2015-04-25
  • mengfpeqiao1 :
    可以用,课堂作业可以参考
    2014-12-22
  • pkmnexp :
    好像不太行啊,分的文件太多了
    2014-11-26

免责申明

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