要: 现今网络上有很多娱乐平台,若想和朋友之间来一场围棋对弈就必须下载这些软件,若只是为了下盘围棋就下载一个游戏平台有点大材小用,还需要等待下载完成,很多人不愿意花时间去下载这些软件。而本次设计就可以很好的解决这个问题,它实则就是一个网页,只要双方同时登陆这个网页就可以进行对弈。91929

该设计采用了html5对页面进行布局,利用JavaScript语言实现对围棋逻辑的运算,WebSocket实现用户的在线对弈与聊天,运用Hbuilder开发工具进行开发,所涉及到的后台内容很少,该设计的功能包括:围棋的吃子,围棋的禁手,用户的悔棋,落子的记录,用户的聊天。

毕业论文关键词:在线对弈,围棋,禁手,悔棋,聊天 

Abstract: There are a lot of entertainment platform on the network today, if you want to go to a friend between the chess game must download these software, if only for the next go to download a game platform a bit overkill, but also need to wait for the download is complete, many people do not want to spend Time to download the software。 And this design can be a very good solution to this problem, it is actually a web page, as long as the two sides at the same time landing this page can be chess。 

The design uses html5 on the layout of the page, the use of JavaScript language to achieve the logic of the game, WebSocket to achieve the user's online game and chat, the use of Hbuilder development tools for development, involving very little background content, the design features include : Go to eat, Go the prohibition, the user's regret chess, Lazi record, the user's chat。

Keywords: Online chess,go,No band,Undo,chat

目   录

1  引言 4

1。1  围棋背景 4

1。2  游戏开发工具简介 4

1。3  游戏开发环境简介 6

1。4  运行环境 6

2  游戏的分析与设计 7

2。1 可行性分析 7

2。2需求分析 7

3游戏设计图 8

3。1游戏E-R图设计 8

3。2游戏逻辑设计图 8

4 代码分析 9

4。1变量名表与函数名表 9

4。2页面布局代码 10

4。3落子与记录代码 12

4。3吃子判断代码 15

4。4禁手判断代码 22

4。5悔棋代码 25

5双人对战代码 27

5。1聊天功能 27

5。2对战功能 30

5。3对战悔棋功能 31

结束语 33

参 考 文 献 35

致谢 36

1  引言

1。1  围棋背景

围棋讲究的是战略,运筹帷幄,胜败在于能否围歼敌人,就像行军打仗一般,而且行军打仗,局势变化多端,想要掌控战场并不容易,所以围棋是十分考验智力又十分消耗脑力的游戏,她发源自我们中国,是我们中华民族的骄傲。

上一篇:Android手机在线商城的设计+源代码
下一篇:java+mysql健身网站设计+源代码

OS-ELM快速精确的在线序贯超限学习机

基于MOODLE平台的在线交互式学习设计

jsp《计算机硬件技术基础...

基于.net的在线考试系统设计与实现

基于JSP的课堂在线测试系统的设计与实现

基于Android的火车票在线订...

ASP.NET+sqlserver艺术课程在线...

肢体语言在小学英语教学中的应用浅谈

日语论文中日酒文化对比研究

新疆农林高校學生昆虫生...

大淘宝网的虚假交易研究

激光模拟训练器材国内外研究现状

2021年什么行业赚钱,适合...

发酵米粉优势菌株的发酵特性研究

淮安市高校足球运动损伤问卷调查表

浅谈农村大气环境保护的制度构建【1868字】

个案管理茬老年糖尿病患...