1、stressed that promoting the comprehensive revitalization should focus on economic construction as the central focus with, pay special attention to grasp the implementation of five development concepts, deepening reform and promoting the all-round opening up, ensuring and improving people's livelihoo
2、d, strengthen the construction of ecological civilization, "five priorities", play development mix. To with new development concept measure work, and command action, and training cadres, in implement implementation new development concept in the looking for opportunities, and build highlights, and e
3、xpand advantage; to full deepening reform, break bound the aspects created vitality of system mechanism obstacles; to active advance full aspects opening, participation "in the cast Russian Economic Corridor" construction; to guarantees and improved livelihood, strongly won poverty battle; to streng
4、thening ecological civilization construction, for sustainable development reserved space, for future generations left sky blue, and to green, and water clear of better homes. We must in-depth implement implementation new development concept, insisted to economic construction for Center, firmly caugh
5、t development this first priority, absorbed make construction, heart no distractions caught development, speed up development "six big industry", in-depth implementation "three big engineering", active create "two big environment", out of a article quality more high, and benefits better, and structu
6、re more excellent of transformation development of road. To strengthen ecological construction. On March 22, the deep restructuring examined and adopted the opinion on perfecting compensation mechanism of ecological protection, proposed to explore the establishment of diversified ecological compensa
7、tion mechanism, progressive realization of forests, grasslands, wetlands and other areas of focus and key ecological function and other important regional ecological compensation coverage, the ecological advantages of the region will be further highlighted. We need to go green eco-building, as the e
8、ssential policy, in strict accordance with the State of main function region construction requirements, careful implementation and Xiaoxing ' an mountains forest ecological protection and economic restructuring plan for the construction of sky blue, ... Acts prohibited by picking up the remaining we
9、lls in standing timber. To focus on forest resource conservation, increase the acquisition and supervision of cold storage, no buy fruit, encourage support to leading enterprises, workers ' cooperatives as a unit, the contract management of forest resources, the rational protection and utilization o
10、f resources. To work actively towards policy aimed from the level of the State Forestry Administration formulated regulations to protect forest resources as soon as possible to achieve law and regulation to protect forest resources. Should focus on forest fire prevention. Fire safety is the first pr
11、iority XXXX大学计算机系 课程设计说明书 课程名称 : Java程序设计与技术 课程代码 : 题 目 : 年级/专业/班 : 学生姓名 : 学 号 : 指导老师 : 开题时间 : 年 月 日 完成时间 : 2009年 月 日 2009年 月 日 Java课程设计任务书及成绩评定 课题名称: Java程序设计与技术 完成者: 1、设计的目的与要求: 根据所学的软件工程与程序设计的知识,能够针对一个小型的数据
12、库管理系统,进行系统的需求分析,系统设计,编码,测试等,完成题目要求的功能,从而达到掌握开发一个小型数据库的目的。 2、设计进度及完成情况 日 期 内 容 2008-12-15 小组讨论,对所要做的系统有一些大致的了解 2008-12-18 对系统进行总体设计 2008-12-20 给出系统设计中所要用到的模块 2008-12-24 系统详细设计开始,编写代码 2008-12-28 完成代码的编写,开始调试程序 2008-12-30 开始编写文档 2009-1-1 初步修改文档 2009-1-3 文档完成,设计结束 3、成绩
13、评定: 设计成绩: (教师填写) 指导老师: (签字) 二00 年 月 通过多种方式和手段,进行文献检索、资料收集和整理,旨在了解我国住房制度和当代居住小区规划设计、建设、发展的理论与实践问题the first responsibility of the forest, 26th spring area has fully deployed to the fire, has now entered the fire, we have to be on duty, and defend.
14、 Determined to overcome paralysis, must not "Twelve-Five" no fires in the past, the reduced requirements during the period. To apply strictly the party with the responsibility, must shoulder the responsibility of the Party Secretary in particular, really practice pipes, it can never shuaishouzhanggu
15、i, be sure to layer the implementation falls fire responsibility, to ensure that no major forest fires. To adhere to balanced, correctly handle the relationship between fire and project construction, industrial development, to "never miss or two." Second, to speed up the development of six major ind
16、ustries. Promote development in our region, the key is to give full play to resource advantage to build eco-oriented "big six" system, to create the new engine of economic growth. Firm confidence. Practice has proved that the "big six" of both central and provincial requirements, and meet the actual
17、 da hinggan mountains, through active efforts have been showing a strong momentum of development. So, in the "six" on development, we must be firm in faith, go all out, perseverance, one caught in the end, convinced that Castle is not relaxed, does not reach the target will never give up. Should foc
18、us on industrial projects. Project is to accelerate the industrial development of important support and backing. Industrial project construction, my area there are few in number, small size, low level problems. This year, the project as his party has "first project", we have to work hard to project
19、construction. Especially effective during short, catching project shall not, slow, dragging not allowed. All localities should conscientiously implement the project leadership system, timetable, roadmap, and coordinate services, tracking the whole process forward, inverted durations, speeding up pro
20、gress and seek practical results. Poised to break the project build Set challenges, to accelerate the pace of preliminary formalities, the enterprises have difficulties to pull one way and also help in a timely manner to help businesses market, enhance confidence, urging work as soon as possible. To
21、 strengthen the project analysis, proper risk analysis and improve project success rates. (Specific to the XX, we still want to make good use of agricultural advantages, relying on the upper reaches of the forest in the fresh air and XXX pure water and other resources, create high-quality, high-grad
22、e green food brands, truly reflect the original character. Meanwhile, adhere to the project as the breakthrough to promote economic development around the "six industrial chain" to pay special attention to forming projects, dig potential projects, focus on key projects, actively cultivating the new
23、leading industries and new sources of economic growth). To promote investment. More accurate professional business, and based my industrial base and resources, aimed at national industrial layout免责声明:文档在线网中所有的文档资料均由文档在线网会员提供,该文档资料的版权属于提供者所有。文档在线网会对会员提供的文档资料进行筛选和编辑,但是并不声明或保证其内容的合法性和正确性。 目 录
24、 摘 要 I 1 引言 I 2 设计任务与目的 I 3 需求分析 I 4 设计思路 I 4.1 功能说明 I ①象棋4.2.1 相关类的包图 I :首先红方走棋,然后黑方走棋,直到一方获胜。 I ②新游戏:任何时候可以重新开始一盘新的对奕。 I ③悔棋:当走错棋的时候,可以悔棋。 I ④信息提示:提示当前信息状态。 I 4.2详细设计 I 4.2.1 相关类的包图 I 4.2.2相关类的类图 1 5 系统实现 1 5.1 运行效果 1 5.2操作介绍 1 6 结束语 1 参考文献 1 致谢 1 附录A:系统源程序 1 附录B:编码
25、规范 1 摘 要 随着科学技术的不断提高,计算机科学日渐成熟,其强大的功能已为人们深刻认识,它已进入人类社会的各个领域并发挥着越来越重要的作用。通过本课程设计使学生加深理解、巩固课堂理论知识和实验知识,使学生初步具备综合运用所学Java语言基础知识,面向对象程序设计的基本思想、方法与技术,网络通信编程技术和数据库编程技术等开发简单应用系统的基本能力,初步掌握软件开发中系统分析、系统设计、系统实现和系统测试等阶段的基本方法与技术,培养学生的创新意识,提高实践应用能力,为培养应用型人才服务。该程序是一个图形界面的java中国象棋对弈系统,程序实现了新游戏,悔棋,保存,打开,退
26、出5大功能,并添加一个applet的背景音乐。 关键词:JAVA 象棋 对弈 游戏 Abstract with science and technology unceasing enhancement, the computer science is mature day after day, its formidable function had known profoundly for the people, it entered the human society each domain and is playing more and more vital role。Ca
27、uses the student through this curriculum project to deepen understanding, the consolidated classroom theoretical knowledge and the experiment knowledge, causes the student to have the synthesis utilization to study the Java language elementary knowledge initially, the object-oriented programming's b
28、asic philosophy, the method and the technology, network service development simple application system's and so on programming technology and database programming technology basic capabilities, grasp in the software development the system analysis, the system design, the system to realize initially w
29、ith stage and so on system test essential methods and the technology, raises student's innovative ideology, sharpens the practice application ability, serves for the raise application talented person.The program is a graphical interface of java Chinese chess game systems, procedures for the realizat
30、ion of a new game, Hui Qi, preservation, open from 5 features, and an applet to add background music. Key words: JAVA chess game game 《Java程序设计与技术》课程设计 ——中国象棋对弈系统 1 引言 (本课题的来源、与该项目相关的知识的意义、作用,应用前景等) 中国象棋对弈系统主要要实现的是棋子的走法,中国象棋讲究车,马,象,仕,卒,炮,将;只有当将被对方棋子覆盖,则首先覆盖对方将的一方就是胜利的一方。中国象
31、棋对弈系统实现了双人对弈这个功能,可用于多人一起游戏。而实现中国象棋对弈系统就为象棋在网络应用平台提供多人对弈。 2 设计任务与目的 通过本课程设计教学所要求达到的目的是:通过本程序实现中国象棋对弈并能实现一些基本功能,如:棋局的保存与棋局的调用。 3 需求分析 本程序实现了五个功能键,即新游戏:开始一局新的对弈;悔棋:将棋子返回刚才所处位置;打开:调用以前保存的棋局;保存:将当前棋局保存;退出:退出本程序。 4 设计思路 运用GUI,JAVA标准类库和监听器等知识,首先编写一个主类Chess,构造一个主窗口,在中国象棋-Java版上添加一块可显示的棋盘,再在棋盘上
32、添加32个棋子按钮,然后再在主窗口下面添加一块面板,用此面板来用来对“新游戏,悔棋,保存”等进行操作。 1.Java中国象棋对弈系统是:图形界面,线程,监听器与文件等技术的综合运用。 2.图形界面的实现:考虑到中国象棋的特点本程序使用GridLayout布局来实现由于使用鼠标操作本程序使用Jbutton组件。 3.对弈的实现:利用鼠标的监听来实现对象棋走法的操作。 4.1 功能说明 ①象棋4.2.1 相关类的包图 :首先红方走棋,然后黑方走棋,直到一方获胜。 ②新游戏:任何时候可以重新开始一盘新的对奕。 ③悔棋:当走错棋的时候,可以悔棋。 ④信息提示:提示当前信息状态
33、 4.2详细设计 4.2.1 相关类的包图 包名: com.jk.brt 包中的类:Chess ChessMainFrame ChessRule 4.2.2相关类的类图 5 系统实现 5.1 运行效果 本中国象棋对弈系统操作界面如图,还包括有背景音乐(高山流水),以及按键音。 本象棋对弈系统操作是参照中国象棋走法制定的,当一方的“将”或“帅”被覆盖,则另一方或的胜利: 5.2操作介绍 本系统包括以上五个操作键: 新游戏:开始一局新的
34、对弈; 悔棋:将棋子返回刚才所处位置; 打开:调用以前保存的棋局; 保存:将当前棋局保存; 退出:退出本程序。 6 结束语 (本次课程设计的体会、收获,存在问题及进一步改进思路) 本次课程设计加深了对课本只是的进一步学习和巩固,由于穿插在源程序代码的编写不断学系,是我对课本知识在实际当中的运用有了一定的了解。不足主要表现在有与本源代码是在12.28号之前实现的,所以我们只做了一个主类没有创建相关的驱动类。本对弈系统基本实现了中国象棋的对弈,但由于只能人人对弈而没实现人机对弈,所以稍有遗憾。 参考文献 [1] 张广彬,孟红蕊,张永宝.Java课程设计案
35、例精编[M].北京:清华大学出版社,2007,1. [2] 黄晓东.Java课程设计案例精编[M].北京:中国水利水电出版社,2004,5. [3] 求是科技. Java信息管理系统开发实例导航[M].北京:人民邮电出版社,2005,4. [4] 求是科技.Java数据库系统开发实例导航[M].北京:人民邮电出版社,2004,9. [5]张海藩,软件工程导论(第4版).北京:清华大学出版社,2003 [6]李芝兴,Java 程序设计之网络编程. 清华大学出版社,2006 [7] 张海藩,牟永敏。面向对象程序设计实用教程。北京:清华大学出版社,2001 [8] [美]豪顿等。JA
36、VA2编程指南 。电子工业出版社,2002 [9] 孙卫琴。Java网络编程精解。电子工业出版社,2007 致谢 (对你本次课程设计帮助过、指导过的老师及其他同学的谢语) 本课程设计曾有一下人热心的帮助了我们,如杨标格教我制作包图,刘林波教我们制作类图。不但使我们完成了任务,而且还学到了知识。还有感谢老师给我们提供了可靠而且详尽的资料,让我们完成里此次课程设计。 附录A:系统源程序 /* * To change this template, choose Tools | Templates * and open the template in the edi
37、tor. */ package chinesechess; /* *中国象棋Java版V3.0 *作者 *源文件:Chess.java *最后修改时间:2004-12-20 *添加功能:实现了当前棋局的保存 */ import java.io.*; import java.applet.Applet; import java.applet.AudioClip; import javax.swing.*; import java.awt.*; import java.awt.event.*; import javax.swi
38、ng.*; import java.util.*; import java.io.*; //主类 //主框架类 public class ChineseChess { public static void main(String args[]) { new ChessMainFrame("中国象棋"); } } class ChessMainFrame extends JFrame implements ActionListener,MouseListener,Runnable {
39、 MusicDemo t = new MusicDemo(); //玩家 JLabel play[] = new JLabel[32]; //棋盘 JLabel image; //窗格 Container con; //工具栏 JToolBar jmain; //重新开始 JButton anew; //悔棋 JButton repent; //打开 JButton showOpen; //保存 JButton showSave; //退出 JButton exit;
40、 //当前信息 JLabel text; //保存当前操作 Vector FileVar; Vector Var; //规则类对象(使于调用方法) ChessRule rule; /*单击棋子**********************************/ /*chessManClick = true 闪烁棋子 并给线程响应*/ /*chessManClick = false 吃棋子 停止闪烁 并给线程响应*/ boolean chessManClick; /*控制玩家走棋**********************
41、/ /*chessPlayClick=1 黑棋走棋*/ /*chessPlayClick=2 红棋走棋 默认红棋*/ /*chessPlayClick=3 双方都不能走棋*/ int chessPlayClick=2; //控制棋子闪烁的线程 Thread tmain; //把第一次的单击棋子给线程响应 static int Man,i; ChessMainFrame(){} ChessMainFrame(String Title) { //获行客格引用 con = this.getContentPane
42、); con.setLayout(null); //实例化规则类 rule = new ChessRule(); FileVar = new Vector(); Var = new Vector(); //创建工具栏 jmain = new JToolBar(); text = new JLabel(" 热烈欢迎"); text.setToolTipText("提示信息"); anew = new JButton(" 新 游 戏 " ); anew.setToolTipText("重新开始新的一局");
43、exit = new JButton(" 退 出 "); exit.setToolTipText("退出本程序"); repent = new JButton(" 悔 棋 "); repent.setToolTipText("返回到上次走棋的位置"); showOpen = new JButton("打开"); showOpen.setToolTipText("打开以前棋局"); showSave = new JButton("保存"); showSave.setToolTipText("保存当前棋局"); //把组件添加
44、到工具栏 jmain.setLayout(new GridLayout(0,6)); jmain.add(anew); jmain.add(repent); jmain.add(showOpen); jmain.add(showSave); jmain.add(exit); jmain.add(text); jmain.setBounds(0,500,450,30); con.add(jmain); //添加棋子标签 drawChessMan(); /*注册监听者*/ //注册按扭监听
45、 anew.addActionListener(this); repent.addActionListener(this); exit.addActionListener(this); showOpen.addActionListener(this); showSave.addActionListener(this); //注册棋子移动监听 for (int i=0;i<32;i++) { con.add(play[i]); play[i].addMouseListener(this); }
46、 //添加棋盘标签 con.add(image = new JLabel(new ImageIcon("CChess.GIF"))); image.setBounds(0,0,446,497); image.addMouseListener(this); //注册窗体关闭监听 this.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent we) { System.exit(0); } });
47、//窗体居中 Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension frameSize = this.getSize(); if (frameSize.height > screenSize.height) { frameSize.height = screenSize.height; } if (frameSize.width > screenSize.width) { frameSize.width = screenSize
48、width; } this.setLocation((screenSize.width - frameSize.width) / 2 - 200 ,(screenSize.height - frameSize.height ) / 2 - 290); this.setIconImage(new ImageIcon("车1.gif").getImage()); this.setResizable(false); this.setTitle(Title); this.setSize(450,550); this.show(); }
49、 /*添加棋子方法************/ public void drawChessMan() { //流程控制 int i,k; //图标 Icon in; //黑色棋子 //车 in = new ImageIcon("车1.GIF"); for (i=0,k=10;i<2;i++,k+=385) { play[i] = new JLabel(in); play[i].setBounds(k,10,40,40); play[i].setName("车1"); }
50、 //马 in = new ImageIcon("马1.GIF"); for (i=4,k=60;i<6;i++,k+=285) { play[i] = new JLabel(in); play[i].setBounds(k,10,40,40); play[i].setName("马1"); } //相 in = new ImageIcon("相1.GIF"); for (i=8,k=105;i<10;i++,k+=195) { play[i] = new JLabe
©2010-2025 宁波自信网络信息技术有限公司 版权所有
客服电话:4009-655-100 投诉/维权电话:18658249818