中國(guó)象棋網(wǎng)上對(duì)弈系統(tǒng).rar
中國(guó)象棋網(wǎng)上對(duì)弈系統(tǒng),摘要隨著信息技術(shù)的發(fā)展,人民生活水平的不斷提高。聯(lián)網(wǎng)游戲作為一種娛樂(lè)手段,正以其獨(dú)特的魅力吸引著越來(lái)越多的玩家。為了滿(mǎn)足廣大象棋愛(ài)好者也可以享受到網(wǎng)絡(luò)所帶來(lái)的便利,本設(shè)計(jì)在當(dāng)前局域網(wǎng)條件下實(shí)現(xiàn)了中國(guó)象棋的網(wǎng)絡(luò)對(duì)戰(zhàn)。鑒于局域網(wǎng)的特點(diǎn)和游戲本身的要求,本設(shè)計(jì)采用兩層c/s架構(gòu)來(lái)實(shí)現(xiàn)相互之間的通信。它主要...
該文檔為壓縮文件,包含的文件列表如下:
內(nèi)容介紹
原文檔由會(huì)員 ljjwl8321 發(fā)布中國(guó)象棋網(wǎng)上對(duì)弈系統(tǒng)
摘要
隨著信息技術(shù)的發(fā)展,人民生活水平的不斷提高。聯(lián)網(wǎng)游戲作為一種娛樂(lè)手段,正以其獨(dú)特的魅力吸引著越來(lái)越多的玩家。為了滿(mǎn)足廣大象棋愛(ài)好者也可以享受到網(wǎng)絡(luò)所帶來(lái)的便利,本設(shè)計(jì)在當(dāng)前局域網(wǎng)條件下實(shí)現(xiàn)了中國(guó)象棋的網(wǎng)絡(luò)對(duì)戰(zhàn)。
鑒于局域網(wǎng)的特點(diǎn)和游戲本身的要求,本設(shè)計(jì)采用兩層C/S架構(gòu)來(lái)實(shí)現(xiàn)相互之間的通信。它主要包含以下幾大模塊:網(wǎng)絡(luò)通信模塊,圖像繪制模塊和規(guī)則設(shè)置模塊。網(wǎng)絡(luò)通信模塊使得玩家可以方便的迅速建立起網(wǎng)絡(luò)連接,從而實(shí)現(xiàn)聯(lián)機(jī)對(duì)弈和聊天功能;圖像繪制模塊實(shí)現(xiàn)棋盤(pán)更新以及棋子動(dòng)態(tài)表示等功能;規(guī)則設(shè)置模塊用于約束玩家的棋步。
電腦游戲是計(jì)算機(jī)應(yīng)用領(lǐng)域的一個(gè)重要主題,而當(dāng)前網(wǎng)上最熱門(mén)的休閑對(duì)戰(zhàn)類(lèi)游戲當(dāng)屬棋牌游戲。通過(guò)對(duì)象棋的數(shù)據(jù)結(jié)構(gòu),相關(guān)算法與網(wǎng)絡(luò)聯(lián)機(jī),以及對(duì)網(wǎng)絡(luò)對(duì)戰(zhàn)平臺(tái)系統(tǒng)的分析,設(shè)計(jì)成一套基于VC++平臺(tái)的棋牌類(lèi)對(duì)戰(zhàn)系統(tǒng)。
關(guān)鍵詞:網(wǎng)絡(luò)通信;聯(lián)機(jī)對(duì)弈;圖像繪制;消息響應(yīng)
CHINESE CHESS ONLINE GAME SYSTEM
Abstract
With the development of information technology, peoples standard of living have improved constantly. On-line game as a means of entertainment has a unique charm to attract more and more players. To meet chess lovers ,this design has realized the Challenges of Chinese-chess between players under the current LAN environment.
In view of the characteristics of local area networks and the requirements of the game itself, the design uses a two-tier C/S structure to achieve mutual communication. It contains the following major modules: the network communication module, image rendering module and the rules set up module. Network Communication Module allows gamers can quickly set up a convenient network connection in order to achieve an online game and chat function; image rendering module to update the board as well as functional pieces, such as the dynamic that; rules binding settings module for step-by-step player's game.
Computer games is the field of computer applications as an important subject, and present the most popular casual online games war among board games. By the data structure, algorithms and network online, as well as the network platform for systematic analysis of the war, designed a set of VC + + platform based on the category Card battle system.
Keywords: Network Communication; Online game; Image Rendering; Message Response
目 錄
摘要 I
Abstract II
1緒論 3
1.1課題背景 3
1.2課題發(fā)展概況 3
1.3本文主要工作 4
2系統(tǒng)介紹 5
2.1系統(tǒng)簡(jiǎn)介 5
2.2 系統(tǒng)構(gòu)成 5
2.3相關(guān)技術(shù) 5
2.3.1 點(diǎn)對(duì)點(diǎn)通信 5
2.3.2 TCP/IP協(xié)議 6
2.3.3 UPD基礎(chǔ) 7
2.3.4屏幕作圖與用戶(hù)交互 7
2.3.5遠(yuǎn)程控制原理 8
3設(shè)計(jì)與實(shí)現(xiàn) 9
3.1數(shù)據(jù)結(jié)構(gòu) 9
3.1.1棋盤(pán) 9
3.1.2棋子信息數(shù)組 10
3.1.3變量與函數(shù) 11
3.2圖像繪制 12
3.2.1主窗口 12
3.2.2棋盤(pán)的繪制 12
3.2.3棋子的繪制及初始化 13
3.2.4動(dòng)態(tài)顯示 14
3.2.5回看功能 15
3.3規(guī)則設(shè)置 15
3.3.1棋子規(guī)則 15
3.3.2規(guī)則算法 15
3.4網(wǎng)絡(luò)通信 17
3.4.1CCOM類(lèi) 17
3.4.2數(shù)據(jù)代碼 18
3.4.3數(shù)據(jù)更新 19
3.4.4聊天功能 19
3.5棋子操作 20
3.5.1獲取點(diǎn)擊 20
3.5.2走棋判斷 21
3.5.3光標(biāo)變化 21
4總結(jié)與展望 23
4.1總結(jié) 23
4.2展望 23
參考文獻(xiàn) 24
致 謝 25
TA們正在看...
- 素質(zhì)教育觀(guān)下的數(shù)學(xué)教學(xué)模式研究.doc
- 太陽(yáng)能空氣集熱器熱性能的實(shí)驗(yàn)研究.doc
- 太陽(yáng)能-空氣雙熱源復(fù)合熱泵國(guó)內(nèi)研究現(xiàn)狀.doc
- 太陽(yáng)能—空氣雙熱源溫差對(duì)復(fù)合熱泵系統(tǒng)性能影響的...doc
- 太陽(yáng)能路燈設(shè)計(jì).doc
- 太陽(yáng)能?chē)娚?壓縮二級(jí)制冷系統(tǒng)的用分析.doc
- 太陽(yáng)能驅(qū)動(dòng)半導(dǎo)體制冷結(jié)露法家庭制水技術(shù)研究.doc
- 太陽(yáng)能熱利用系統(tǒng)的長(zhǎng)期監(jiān)測(cè)與節(jié)能減排效益評(píng)價(jià)-何...doc
- 太陽(yáng)能庭院燈的設(shè)計(jì).doc
- 太陽(yáng)能相變蓄熱輔助地源熱泵供暖系統(tǒng)實(shí)驗(yàn)研究.doc