Java+GUI编程实现“21点”游戏(含文档和代码)

上传者: turing2015 | 上传时间: 2019-12-21 21:17:34 | 文件大小: 1.45MB | 文件类型: rar
这个游戏系统比较难及复杂的地方在于游戏过程中的逻辑处理和和解决这些逻辑问题的有效的算法步骤。通过整个程序的代码量的分布也体现了这一点。其基础的几个类Card,Cards,User都只有少量的代码,大量的代码分布在发牌,开局,重新开局等事件处理上。界面的实现也费用了很多代码。而通过实现这个程序,我也发现了自己在逻辑问题处理上的弱势。比如在处理A牌改当1点算,还是当11点算时,我花费了很长时间来理清这个思路。而事实上这个逻辑处理比较简单。

文件下载

资源详情

[{"title":"( 92 个子文件 1.45MB ) Java+GUI编程实现“21点”游戏(含文档和代码)","children":[{"title":"基于Java GUI编程实现“21点”游戏(含文档和代码)","children":[{"title":"src","children":[{"title":"config","children":[{"title":"userInformation.xml <span style='color:#111;'> 269B </span>","children":null,"spread":false}],"spread":true},{"title":"images","children":[{"title":"黑桃K.png <span style='color:#111;'> 20.84KB </span>","children":null,"spread":false},{"title":"红桃10.png <span style='color:#111;'> 8.34KB </span>","children":null,"spread":false},{"title":"黑桃7.png <span style='color:#111;'> 7.69KB </span>","children":null,"spread":false},{"title":"红桃2.png <span style='color:#111;'> 4.37KB </span>","children":null,"spread":false},{"title":"黑桃5.png <span style='color:#111;'> 6.73KB </span>","children":null,"spread":false},{"title":"方块J.png <span style='color:#111;'> 21.16KB </span>","children":null,"spread":false},{"title":"2.gif <span style='color:#111;'> 2.55KB </span>","children":null,"spread":false},{"title":"方块7.png <span style='color:#111;'> 5.94KB </span>","children":null,"spread":false},{"title":"1.gif <span style='color:#111;'> 2.55KB </span>","children":null,"spread":false},{"title":"红桃8.png <span style='color:#111;'> 7.22KB </span>","children":null,"spread":false},{"title":"黑桃6.png <span style='color:#111;'> 7.27KB </span>","children":null,"spread":false},{"title":"黑桃Q.png <span style='color:#111;'> 23.57KB </span>","children":null,"spread":false},{"title":"黑桃9.png <span style='color:#111;'> 8.92KB </span>","children":null,"spread":false},{"title":"方块Q.png <span style='color:#111;'> 23.32KB </span>","children":null,"spread":false},{"title":"梅花J.png <span style='color:#111;'> 23.38KB </span>","children":null,"spread":false},{"title":"红桃A.png <span style='color:#111;'> 3.86KB </span>","children":null,"spread":false},{"title":"方块4.png <span style='color:#111;'> 4.88KB </span>","children":null,"spread":false},{"title":"黑桃8.png <span style='color:#111;'> 8.41KB </span>","children":null,"spread":false},{"title":"黑桃3.png <span style='color:#111;'> 5.53KB </span>","children":null,"spread":false},{"title":"方块2.png <span style='color:#111;'> 4.15KB </span>","children":null,"spread":false},{"title":"黑桃2.png <span style='color:#111;'> 4.90KB </span>","children":null,"spread":false},{"title":"梅花A.png <span style='color:#111;'> 4.20KB </span>","children":null,"spread":false},{"title":"1.png <span style='color:#111;'> 14.59KB </span>","children":null,"spread":false},{"title":"方块9.png <span style='color:#111;'> 6.74KB </span>","children":null,"spread":false},{"title":"黑桃A.png <span style='color:#111;'> 10.01KB </span>","children":null,"spread":false},{"title":"黑桃10.png <span style='color:#111;'> 9.68KB </span>","children":null,"spread":false},{"title":"梅花3.png <span style='color:#111;'> 5.56KB </span>","children":null,"spread":false},{"title":"梅花10.png <span style='color:#111;'> 9.58KB </span>","children":null,"spread":false},{"title":"梅花Q.png <span style='color:#111;'> 23.25KB </span>","children":null,"spread":false},{"title":"红桃K.png <span style='color:#111;'> 23.07KB </span>","children":null,"spread":false},{"title":"红桃7.png <span style='color:#111;'> 6.62KB </span>","children":null,"spread":false},{"title":"方块A.png <span style='color:#111;'> 3.74KB </span>","children":null,"spread":false},{"title":"梅花4.png <span style='color:#111;'> 6.06KB </span>","children":null,"spread":false},{"title":"梅花5.png <span style='color:#111;'> 6.75KB </span>","children":null,"spread":false},{"title":"梅花9.png <span style='color:#111;'> 8.75KB </span>","children":null,"spread":false},{"title":"backSide.png <span style='color:#111;'> 51.34KB </span>","children":null,"spread":false},{"title":"梅花7.png <span style='color:#111;'> 7.81KB </span>","children":null,"spread":false},{"title":"梅花K.png <span style='color:#111;'> 20.71KB </span>","children":null,"spread":false},{"title":"方块8.png <span style='color:#111;'> 6.40KB </span>","children":null,"spread":false},{"title":"方块K.png <span style='color:#111;'> 23.14KB </span>","children":null,"spread":false},{"title":"红桃J.png <span style='color:#111;'> 22.74KB </span>","children":null,"spread":false},{"title":"sound1.mid <span style='color:#111;'> 6.32KB </span>","children":null,"spread":false},{"title":"方块3.png <span style='color:#111;'> 4.58KB </span>","children":null,"spread":false},{"title":"红桃4.png <span style='color:#111;'> 5.33KB </span>","children":null,"spread":false},{"title":"Thumbs.db <span style='color:#111;'> 200.50KB </span>","children":null,"spread":false},{"title":"黑桃J.png <span style='color:#111;'> 21.48KB </span>","children":null,"spread":false},{"title":"红桃Q.png <span style='color:#111;'> 22.56KB </span>","children":null,"spread":false},{"title":"红桃3.png <span style='color:#111;'> 4.92KB </span>","children":null,"spread":false},{"title":"黑桃4.png <span style='color:#111;'> 6.06KB </span>","children":null,"spread":false},{"title":"方块6.png <span style='color:#111;'> 5.69KB </span>","children":null,"spread":false},{"title":"2.png <span style='color:#111;'> 14.90KB </span>","children":null,"spread":false},{"title":"红桃9.png <span style='color:#111;'> 7.61KB </span>","children":null,"spread":false},{"title":"方块5.png <span style='color:#111;'> 5.31KB </span>","children":null,"spread":false},{"title":"方块10.png <span style='color:#111;'> 7.33KB </span>","children":null,"spread":false},{"title":"梅花8.png <span style='color:#111;'> 8.16KB </span>","children":null,"spread":false},{"title":"梅花6.png <span style='color:#111;'> 7.38KB </span>","children":null,"spread":false},{"title":"红桃6.png <span style='color:#111;'> 6.29KB </span>","children":null,"spread":false},{"title":"梅花2.png <span style='color:#111;'> 4.90KB </span>","children":null,"spread":false},{"title":"3.png <span style='color:#111;'> 67.15KB </span>","children":null,"spread":false},{"title":"红桃5.png <span style='color:#111;'> 5.86KB </span>","children":null,"spread":false}],"spread":false},{"title":"game","children":[{"title":"GameMain$13.class <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"GameMain.java <span style='color:#111;'> 21.62KB </span>","children":null,"spread":false},{"title":"GameMain$6.class <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"User.class <span style='color:#111;'> 5.41KB </span>","children":null,"spread":false},{"title":"User.java <span style='color:#111;'> 4.01KB </span>","children":null,"spread":false},{"title":"GameMain.class <span style='color:#111;'> 10.62KB </span>","children":null,"spread":false},{"title":"GameMain$8.class <span style='color:#111;'> 809B </span>","children":null,"spread":false},{"title":"Cards.java <span style='color:#111;'> 810B </span>","children":null,"spread":false},{"title":"GameMain$1.class <span style='color:#111;'> 546B </span>","children":null,"spread":false},{"title":"Card.class <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"Card.java <span style='color:#111;'> 515B </span>","children":null,"spread":false},{"title":"GameMain$4.class <span style='color:#111;'> 771B </span>","children":null,"spread":false},{"title":"Cards.class <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"GameMain$3.class <span style='color:#111;'> 2.28KB </span>","children":null,"spread":false},{"title":"GameMain$7.class <span style='color:#111;'> 875B </span>","children":null,"spread":false},{"title":"GameMain$11.class <span style='color:#111;'> 2.75KB </span>","children":null,"spread":false},{"title":"GameMain$12.class <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"GameMain$5.class <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false},{"title":"GameMain$9.class <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false},{"title":"GameMain$2.class <span style='color:#111;'> 3.93KB </span>","children":null,"spread":false},{"title":"GameMain$10.class <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false},{"title":"GameMain$14.class <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false}],"spread":false},{"title":".project <span style='color:#111;'> 382B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 226B </span>","children":null,"spread":false}],"spread":true},{"title":"Doc","children":[{"title":"Card.jpg <span style='color:#111;'> 26.69KB </span>","children":null,"spread":false},{"title":"Window.bmp <span style='color:#111;'> 1.80MB </span>","children":null,"spread":false},{"title":"类图2.gif <span style='color:#111;'> 34.22KB </span>","children":null,"spread":false},{"title":"Java21点游戏.doc <span style='color:#111;'> 462.50KB </span>","children":null,"spread":false},{"title":"cards_user_gameMain.jpg <span style='color:#111;'> 170.48KB </span>","children":null,"spread":false},{"title":"Thumbs.db <span style='color:#111;'> 18.50KB </span>","children":null,"spread":false},{"title":"类图1.gif <span style='color:#111;'> 35.10KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • Michelle_洋 :
    可以运行的,但是看不到自己的牌呀
    2015-08-28
  • 我顶你神 :
    我怎么运行不出来啊
    2013-11-15
  • YoungHu :
    这个21点能运行出来,有点粗糙而已。
    2011-12-04

免责申明

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