【正文】
. MIDP client is the only game client, the main functions include connecting the server to check the status, playing games and keeping the exchange of data with the server. (3) The implementation and design of background system. Background is to deal with the Inter database to verify the identity of users, processing the data, which is sent by the clients. Due to the restrictions of objective conditions, the system39。 由于受到客觀條件的限制,本系統(tǒng)的測試是在三星手機(jī)模擬器上完成的,但它仍不失具一定的實(shí)用價值。 手機(jī) MIDP 客戶端的實(shí)現(xiàn) , MIDP 客戶端是游戲的唯一客戶端,主要功能包括連接服務(wù)器進(jìn)行身份驗(yàn)證、進(jìn)行游戲并不斷的與服務(wù)器交換數(shù)據(jù)。 本文基于 J2ME 技術(shù),以計(jì)算機(jī)網(wǎng)絡(luò)游戲的運(yùn)行流程為基礎(chǔ),分模塊開發(fā)一款網(wǎng)絡(luò)五子棋游戲軟件。五子棋手機(jī)網(wǎng)絡(luò)對戰(zhàn)游戲的設(shè)計(jì)與實(shí)現(xiàn) 摘 要 在現(xiàn)代社會中 ,手機(jī)及其它無線設(shè)備越來越多的走進(jìn)普通老百姓的工作和生活。隨著 3G 技術(shù)的普及與應(yīng)用,基于 Java 開發(fā)的軟件在手機(jī)上的使用非常的廣泛,手機(jī)增值服務(wù)的內(nèi)容也是越來越多,對豐富人們的生活內(nèi)容、提供快捷的資訊起著不可忽視的作用。 本文對以下幾點(diǎn)內(nèi)容做了重點(diǎn)研究和探討: 系統(tǒng)整體結(jié)構(gòu) , 根據(jù)設(shè)計(jì)目標(biāo),結(jié)合普通網(wǎng)絡(luò)游戲的運(yùn)行流程,給出了系統(tǒng)總體設(shè)計(jì)方案,并探討了系統(tǒng)設(shè) 計(jì)時需要用到的關(guān)鍵技術(shù)。 后臺系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn) , 后臺用來處理與數(shù)據(jù)庫的互聯(lián)來驗(yàn)證用戶身份、處理由客戶端發(fā)送過來的數(shù)據(jù)。 關(guān)鍵詞: J2ME;手機(jī)游戲; Servlet The Design and Implementation of The Gobang War Game on Cell Phone Network Abstract In modern society, more and more cell phones and other wireless devices e into the work and life of ordinary people. With the popularization and application of the 3rd Generation of Digital munication technology, the development of Javabased software in the use of mobile phones is very broad, mobile valueadded services are more and more. It plays an import role to enrich people39。s test pleted in the Samsung handset simulator. But it does have some advantages. Key words: J2ME。 Servlet 目 錄 論文總頁數(shù) : 24 頁 1 引言 .............................................................................................................................. 1 2 系統(tǒng)綜述 ....................................................................................................................... 1 3 手機(jī)游戲的現(xiàn)狀和關(guān)鍵技 術(shù)介紹 .................................................................................... 2 軟件現(xiàn)狀 ................................................................................................................. 2 J2ME 概況 ............................................................................................................... 2 J2ME 的由來 ..................................................................................................... 2 J2ME 的 3 層體系結(jié)構(gòu)及 MIDP 簡介 .................................................................. 3 TOMCAT 服務(wù)器介紹 ................................................................................................. 4 SERVLET 技術(shù)介紹 .................................................................................................... 5 4 開發(fā)環(huán)境介紹 ............................................................................................................... 7 開發(fā)環(huán)境 ................................................................................................................. 7 關(guān)于 SAMSUNG WIRELESS TOOL KIT ........................................................................ 7 5 客戶端模塊的開發(fā) ........................................................................................................ 7 綜述 ....................................................................................................................... 7 程序的類結(jié)構(gòu) ......................................................................................................... 7 游戲的功能流程圖 .................................................................................................. 8 游戲的實(shí)現(xiàn) ............................................................................................................. 9 主類 Omok 的實(shí)現(xiàn) ............................................................................................ 9 游戲登錄界面以 及操作說明界面的實(shí)現(xiàn) .......................................................... 10 游戲畫布類的實(shí)現(xiàn) ........................................................................................... 12 網(wǎng)絡(luò)連接類的實(shí)現(xiàn) ........................................................................................... 14 五子棋獲勝算法 .............................................................................................. 15 6 服務(wù)器端程序的開發(fā) ................................................................................................... 17 數(shù)據(jù)庫的設(shè)計(jì)與實(shí)現(xiàn) ............................................................................................. 17 SERVLET 程序的編寫 .............................................................................................. 17 7 改進(jìn)建議和措施 .......................................................................................................... 20 關(guān)于圖片問題 ........................................................................................................ 20 軟件測試 ............................................................................................................... 20 測試前的準(zhǔn)備工作 ........................................................................................... 20 進(jìn)行測試 ......................................................................................................... 21 有待添加和完善的功能 .................................................................................... 22 結(jié) 論 ........................................................................................................................ 22 參考文獻(xiàn) ............................................................................