【正文】
j2me 函數(shù)編寫,保證了非常好的可移植性。作為 Java2 平臺的一部分, J2ME 與 J2SE、 J2EE 一起,為無線應(yīng)用的客戶端和服務(wù)器端建立了完整的開發(fā)、部署環(huán)境。短短幾年內(nèi),手機(jī)已經(jīng)升級了幾代產(chǎn)品,普及率逐年攀升,生產(chǎn)效率不斷上升,產(chǎn)品價(jià)格比個(gè)人電腦的摩爾定律有更驚人的下調(diào),以至手機(jī)是大多是城市居民不可缺少的一件隨身設(shè)備。 聲 明 .............................................................................................. 錯(cuò)誤 !未定義書簽。s lives and provide easier access to information. This paper is based on J2ME technology, it expounds how to take the running flow of puter work as basis, introduce a kind of gobang game on work by the submodule method. . The main points of this paper go as follows: (1) The overall system structure. According to the design goals, with the general operation of the work game flow, gives the system design, and explores the key technology, which is used by the design of this system. (2) The implementation of the phone MIDP client. 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。 手機(jī) MIDP 客戶端的實(shí)現(xiàn) , MIDP 客戶端是游戲的唯一客戶端,主要功能包括連接服務(wù)器進(jìn)行身份驗(yàn)證、進(jìn)行游戲并不斷的與服務(wù)器交換數(shù)據(jù)。五子棋手機(jī)網(wǎng)絡(luò)對戰(zhàn)游戲的設(shè)計(jì)與實(shí)現(xiàn) 摘 要 在現(xiàn)代社會中 ,手機(jī)及其它無線設(shè)備越來越多的走進(jìn)普通老百姓的工作和生活。 本文對以下幾點(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ì)時(shí)需要用到的關(guān)鍵技術(shù)。 關(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。 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)備工作 .........................................