GUI版Java五子棋源码,可人机对战,经典

上传者: zqjune | 上传时间: 2019-12-21 22:24:22 | 文件大小: 45KB | 文件类型: zip
内容索引:JAVA源码,游戏娱乐,五子棋   基于GUI的Java五子棋游戏源码,可人机对战,用java swing做的,运行时需要修改图片的路径。   制作思路:   用按钮做棋子,用图片填充每个按钮。   设置棋盘为24*24的,五子棋FiveChessGame类,继承了JFrame,并且添加了时间监听,五子棋的棋子chess,用JButton表示,五子棋棋子chess对应的棋子标识,用于标记棋子的状态。 1表示黑棋,-1表示白棋,默认0表示无棋子,点击棋子时设置棋子的图标setOnChessIcon。 根据判断该位置的棋子是否有棋子,和棋子颜色设置棋子图标   测试棋子的方法showChess。用于将chessInt数组内容打印到控制台,以便观看。

文件下载

资源详情

[{"title":"( 32 个子文件 45KB ) GUI版Java五子棋源码,可人机对战,经典","children":[{"title":"GUI版Java五子棋源码,可人机对战","children":[{"title":"codefans.net","children":[{"title":"FiveChessGame","children":[{"title":"AboutDialog.java <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"FiveChessIcons","children":[{"title":"downRightBlack.jpg <span style='color:#111;'> 919B </span>","children":null,"spread":false},{"title":"leftBlack.jpg <span style='color:#111;'> 907B </span>","children":null,"spread":false},{"title":"upRightBlack.jpg <span style='color:#111;'> 899B </span>","children":null,"spread":false},{"title":"downBlack.jpg <span style='color:#111;'> 927B </span>","children":null,"spread":false},{"title":"down.jpg <span style='color:#111;'> 789B </span>","children":null,"spread":false},{"title":"upBlack.jpg <span style='color:#111;'> 903B </span>","children":null,"spread":false},{"title":"upWhite.jpg <span style='color:#111;'> 821B </span>","children":null,"spread":false},{"title":"upRight.jpg <span style='color:#111;'> 761B </span>","children":null,"spread":false},{"title":"leftWhite.jpg <span style='color:#111;'> 820B </span>","children":null,"spread":false},{"title":"up.jpg <span style='color:#111;'> 793B </span>","children":null,"spread":false},{"title":"bz.jpg <span style='color:#111;'> 847B </span>","children":null,"spread":false},{"title":"left.jpg <span style='color:#111;'> 795B </span>","children":null,"spread":false},{"title":"upRightWhite.jpg <span style='color:#111;'> 800B </span>","children":null,"spread":false},{"title":"right.jpg <span style='color:#111;'> 795B </span>","children":null,"spread":false},{"title":"upLeftWhite.jpg <span style='color:#111;'> 793B </span>","children":null,"spread":false},{"title":"downLeft.jpg <span style='color:#111;'> 760B </span>","children":null,"spread":false},{"title":"qz.jpg <span style='color:#111;'> 836B </span>","children":null,"spread":false},{"title":"rightBlack.jpg <span style='color:#111;'> 923B </span>","children":null,"spread":false},{"title":"downWhite.jpg <span style='color:#111;'> 826B </span>","children":null,"spread":false},{"title":"upLeftBlack.jpg <span style='color:#111;'> 879B </span>","children":null,"spread":false},{"title":"hz.jpg <span style='color:#111;'> 929B </span>","children":null,"spread":false},{"title":"Thumbs.db <span style='color:#111;'> 38.00KB </span>","children":null,"spread":false},{"title":"downLeftWhite.jpg <span style='color:#111;'> 799B </span>","children":null,"spread":false},{"title":"downRight.jpg <span style='color:#111;'> 760B </span>","children":null,"spread":false},{"title":"rightWhite.jpg <span style='color:#111;'> 818B </span>","children":null,"spread":false},{"title":"downRightWhite.jpg <span style='color:#111;'> 806B </span>","children":null,"spread":false},{"title":"downLeftBlack.jpg <span style='color:#111;'> 904B </span>","children":null,"spread":false},{"title":"upLeft.jpg <span style='color:#111;'> 760B </span>","children":null,"spread":false}],"spread":false},{"title":"FiveChessGameMain.java <span style='color:#111;'> 19.67KB </span>","children":null,"spread":false},{"title":"WinDialog.java <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"下载说明.txt <span style='color:#111;'> 562B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

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