ImageVerifierCode 换一换
格式:DOCX , 页数:29 ,大小:20.81KB ,
资源ID:15951537      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/15951537.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(六子冲棋01Word下载.docx)为本站会员(b****5)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

六子冲棋01Word下载.docx

1、 int b; int x; int y; int r; int greennum; int greeneat; int orangenum; int orangeeat; boolean GREEN; boolean G; int a1; int b1; int c1; int d1; Font font; String s; String s1; String s2; String s4; String s5; String s6; String s0; String s3; String s7; String ssssssssss; String ssssssss; String sss

2、ssssss; public Lv13() this.state = 1; this.position = new int1313; this.position22 = 1; this.position42 = 1; this.position26 = 1; this.position46 = 1; this.position04 = 1; this.position24 = 1; this.position44 = 1; this.position64 = 1; this.position00 = 2; this.position20 = 2; this.position40 = 2; th

3、is.position60 = 2; this.position02 = 2; this.position62 = 2; this.position08 = 3; this.position28 = 3; this.position48 = 3; this.position68 = 3; this.position06 = 3; this.position66 = 3; this.a = 100; this.c = 100; this.b = 100; this.r = (this.c / 4); this.greennum = 0; this.greeneat = 6; this.orang

4、enum = 0; this.orangeeat = 6; this.GREEN = true; this.font = new Font(华文行楷, 1, 25); this.s = 绿方先走! 请绿方点击自己棋子!; this.s1 = 绿方走动步数: this.s2 = 黄方走动步数: this.s4 = 绿方的棋子数目: this.s5 = 黄方的棋子数目: this.s6 = 温馨提示 :玩家执绿棋! this.s0 = 游戏开始! this.s3 = null; this.s7 = player or computer:from_,_to_,_ this.ssssssssss =

5、以下是一些判断! this.ssssssss = 以下电脑评分走棋 this.sssssssss = 以下电脑按评分走棋 setLayout(null); setTitle(【单机版】六子冲棋1.0版 作者:康子QQ858494658 微信号:hangkanghua 公众号:kzgzsz ); addMouseListener(this); setSize(1000, 700); setLocationRelativeTo(null); setDefaultCloseOperation(3); setResizable(true); setVisible(true); public stati

6、c void main(String args) new Lv13(); public void paint(Graphics g) super.paintComponents(g); Graphics2D g2d = (Graphics2D)g; g2d.setColor(Color.BLACK); drawchessboard(g2d, this.a, this.b, this.c); drawpieces(g2d); g2d.setFont(this.font); g2d.drawString(this.s, 500, 250); g2d.drawString(this.s6, 500,

7、 200); g2d.drawString(this.s7, 500, 320); g2d.drawString(this.s1 + this.greennum, 550, 400); g2d.drawString(this.s2 + this.orangenum, 550, 450); g2d.drawString(this.s4 + this.greeneat, 550, 500); g2d.drawString(this.s5 + this.orangeeat, 550, 550); g2d.drawString(state= + this.state, 500, 150); g2d.d

8、rawString(this.GREEN + + (this.greennum + this.orangenum), 650, 150); g2d.drawString(this.s0, 500, 100); if (this.s3 != null) g2d.drawString(this.s3, 600, 100); public void drawpieces(Graphics2D g2d) for (int i = 0; i 13; i+) for (int j = 0; j j+) int plecesX = this.a + i * this.c / 2; int plecesY =

9、 this.b + j * this.c / 2; if (this.positionij = 2) g2d.setColor(Color.GREEN); g2d.fillOval(plecesX - this.r, plecesY - this.r, 2 * this.r, 2 * this.r); if (this.positionij = 3) g2d.setColor(Color.ORANGE); public void drawchessboard(Graphics2D g2d, int a, int b, int c)= 3;= 4; g2d.drawLine(a + i * c,

10、 b + j * c, a + (3 - i) * c, b + j * c); g2d.drawLine(a + i * c, b + j * c, a + i * c, b + (4 - j) * c); public boolean isnext(int xx, int yy, int x, int y) boolean b = false; if (x = xx) & (y != yy) if (xx = x) & (Math.abs(y - yy) = 2) b = true; else b = false; else if (y = yy) & (x != xx) if (yy =

11、 y) & (Math.abs(x - xx) = 2) else b = false; return b; public void goodwei(int x, int y) if (this.position4y != 1) & (this.position4y = this.position6y) & (this.position0y = 1) & (this.position2y != this.position4y) &= 1) if (this.position2y != this.positionxy) this.position2y = 1; if (!this.GREEN) this.greeneat -= 1; else this.orangeeat -= 1; else if (this.position2y ! (this.position2y = this.position4y) & (this.position0y != this.position2y) & (this.position6y = 1) & if (this.position0y ! this.position0y = 1;

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1