畢業(yè)論文 斗地主游戲設(shè)計(jì).doc
約32頁DOC格式手機(jī)打開展開
畢業(yè)論文 斗地主游戲設(shè)計(jì),摘 要隨著科技的進(jìn)步,計(jì)算機(jī)已經(jīng)普及每個(gè)家庭,而計(jì)算機(jī)游戲也隨之越來越多,越來越豐富。網(wǎng)絡(luò)游戲、單機(jī)游戲等休閑游戲讓眾多人喜歡,而斗地主也受廣大群眾的追捧?!岸返刂鳌笔橇餍杏谌珖囊环N撲克游戲,玩法簡單,娛樂性強(qiáng),老少皆宜。據(jù)傳在萬惡的舊社會,地主橫行鄉(xiāng)里,無惡不做,人們?yōu)榱税l(fā)泄對地主的痛恨,常常在一天的勞作之后,一家...
內(nèi)容介紹
此文檔由會員 ljjwl8321 發(fā)布
摘 要
隨著科技的進(jìn)步,計(jì)算機(jī)已經(jīng)普及每個(gè)家庭,而計(jì)算機(jī)游戲也隨之越來越多,越來越豐富。網(wǎng)絡(luò)游戲、單機(jī)游戲等休閑游戲讓眾多人喜歡,而斗地主也受廣大群眾的追捧。
“斗地主”是流行于全國的一種撲克游戲,玩法簡單,娛樂性強(qiáng),老少皆宜。據(jù)傳在萬惡的舊社會,地主橫行鄉(xiāng)里,無惡不做,人們?yōu)榱税l(fā)泄對地主的痛恨,常常在一天的勞作之后,一家人關(guān)起門來"斗地主"。該游戲由三個(gè)人玩,用一副或兩副牌,地主為一方,其余兩家為另一方,雙方對戰(zhàn),先出完牌的一方獲勝。
本設(shè)計(jì)以一副牌規(guī)則為準(zhǔn).本論文講述了單機(jī)版斗地主的游戲算法的設(shè)計(jì),以Visual C++語言編譯的一個(gè)應(yīng)用程序。使用者可以簡單方便的實(shí)現(xiàn)斗地主游戲。本程序界面友好,操作簡單,比較實(shí)用。
本程序在詳細(xì)設(shè)計(jì)時(shí)不斷地修正和完善,經(jīng)過測試階段反復(fù)調(diào)試和驗(yàn)證,最終形成達(dá)到設(shè)計(jì)要求的可行系統(tǒng)。
關(guān)鍵字:斗地主; 紙牌; Visual C++
ABSTRACT
With the progress of science and technology,Computers have universal every family,and with more and more computer games,increasingly rich。The network game, LAN game and other casual games for many people like it,but Landlord also affected by the broad masses in both hands。
“Landlord” is a popular poker game national,play simple, entertaining is strong,enjoyed by young and old。Reportedly, the landlord of the old society in the root of evil, no hooliganism village don't do, people to vent the hate for landlords in the day, often after work, family behind closed doors " Landlord "。The game consists of three people playing, use a pair or two pairs of CARDS, landlords and the rest for the party to the other party, the two sides, first out CARDS against the party after winning。
This design with a deck rules shall prevail. This paper tells the stand-alone Landlord game algorithm is designed to Visual c + + language compiled an application. Users can simple to realize Fight the Landlord game. This procedure friendly interface, the operation is simple, is more practical。
This procedure in the detailed design constantly correction and perfect when, after testing phase repeated commissioning and validation, and finally form the feasible system to meet the design requirements。
Key word: Landlord; Cards; Visual c + +
目 錄
緒論………………………………………………………………………………………… 1
1. 系統(tǒng)設(shè)計(jì)的目的及設(shè)計(jì)思路………………………………………………………… 2
1.1 設(shè)計(jì)目的………………………………………………………………………… 2
1.2 設(shè)計(jì)思路………………………………………………………………………… 2
1.3 系統(tǒng)預(yù)覽………………………………………………………………………… 3
2. 系統(tǒng)開發(fā)工具及其介紹……………………………………………………………… 4
2.1 開發(fā)工具的選擇………………………………………………………………… 4
2.2 Visual C++編程特點(diǎn)…………………………………………………………… 5
2.2.1 C++語言的發(fā)展…………………………………………………………… 5
2.2.2 Visual C++ 6.0簡介…………………………………………………… 5
2.2.3 Visual C++ 6.0的開發(fā)環(huán)境…………………………………………… 6
3. 需求分析及可行性分析……………………………………………………………… 7
3.1 需求分析………………………………………………………………………… 7
3.1.1 需求分析的作用………………………………………………………… 7
3.1.2 需求分析過程…………………………………………………………… 7
3.1.3 需求分析的方法………………………………………………………… 7
3. 2 可行性分析………………………………………………………………………8
3.2.1 可行性分析的意義………………………………………………………8
3.2.2 可行性分析報(bào)告…………………………………………………………8
3. 3 系統(tǒng)定義…………………………………………………………………………9
3. 4 系統(tǒng)的組成和功能構(gòu)想…………………………………………………………9
4. 系統(tǒng)總體設(shè)計(jì)方案……………………………………………………………………10
4.1 C/S模式………………………………………………………………………… 10
4.1.1 C/S模式………………………………………………………………… 10
4.1.2 設(shè)計(jì)原則………………………………………………………………… 10
4.2 基于C/S的模塊設(shè)計(jì)……………………………………………………………10
4.2.1 服務(wù)器端模塊設(shè)計(jì)……………………………………………………… 10
4.2.2 客戶端模塊設(shè)計(jì)………………………………………………………… 11
5. 紙牌設(shè)計(jì)……………………………………………………………………………… 13
5.1 紙牌的設(shè)計(jì)…………………………………………………………………… 13
5.2 紙牌的出牌類型……………………………………………………………… 13
6. 詳細(xì)設(shè)計(jì)與系統(tǒng)實(shí)現(xiàn)………………………………………………………………… 15
6.1 出牌記錄和合法……………………………………………………………… 15
6.1.1 出牌記錄和合法性………………………………………………………15
6.2 顯示信息功能………………………………………………………………… 17
6.2.1 分牌………………………………………………………………………17
6.2.2 產(chǎn)生地主………………………………………………………………… 19
6.2.3 牌面顯示………………………………………………………………… 21
6.2.4 出牌顯示………………………………………………………..
隨著科技的進(jìn)步,計(jì)算機(jī)已經(jīng)普及每個(gè)家庭,而計(jì)算機(jī)游戲也隨之越來越多,越來越豐富。網(wǎng)絡(luò)游戲、單機(jī)游戲等休閑游戲讓眾多人喜歡,而斗地主也受廣大群眾的追捧。
“斗地主”是流行于全國的一種撲克游戲,玩法簡單,娛樂性強(qiáng),老少皆宜。據(jù)傳在萬惡的舊社會,地主橫行鄉(xiāng)里,無惡不做,人們?yōu)榱税l(fā)泄對地主的痛恨,常常在一天的勞作之后,一家人關(guān)起門來"斗地主"。該游戲由三個(gè)人玩,用一副或兩副牌,地主為一方,其余兩家為另一方,雙方對戰(zhàn),先出完牌的一方獲勝。
本設(shè)計(jì)以一副牌規(guī)則為準(zhǔn).本論文講述了單機(jī)版斗地主的游戲算法的設(shè)計(jì),以Visual C++語言編譯的一個(gè)應(yīng)用程序。使用者可以簡單方便的實(shí)現(xiàn)斗地主游戲。本程序界面友好,操作簡單,比較實(shí)用。
本程序在詳細(xì)設(shè)計(jì)時(shí)不斷地修正和完善,經(jīng)過測試階段反復(fù)調(diào)試和驗(yàn)證,最終形成達(dá)到設(shè)計(jì)要求的可行系統(tǒng)。
關(guān)鍵字:斗地主; 紙牌; Visual C++
ABSTRACT
With the progress of science and technology,Computers have universal every family,and with more and more computer games,increasingly rich。The network game, LAN game and other casual games for many people like it,but Landlord also affected by the broad masses in both hands。
“Landlord” is a popular poker game national,play simple, entertaining is strong,enjoyed by young and old。Reportedly, the landlord of the old society in the root of evil, no hooliganism village don't do, people to vent the hate for landlords in the day, often after work, family behind closed doors " Landlord "。The game consists of three people playing, use a pair or two pairs of CARDS, landlords and the rest for the party to the other party, the two sides, first out CARDS against the party after winning。
This design with a deck rules shall prevail. This paper tells the stand-alone Landlord game algorithm is designed to Visual c + + language compiled an application. Users can simple to realize Fight the Landlord game. This procedure friendly interface, the operation is simple, is more practical。
This procedure in the detailed design constantly correction and perfect when, after testing phase repeated commissioning and validation, and finally form the feasible system to meet the design requirements。
Key word: Landlord; Cards; Visual c + +
目 錄
緒論………………………………………………………………………………………… 1
1. 系統(tǒng)設(shè)計(jì)的目的及設(shè)計(jì)思路………………………………………………………… 2
1.1 設(shè)計(jì)目的………………………………………………………………………… 2
1.2 設(shè)計(jì)思路………………………………………………………………………… 2
1.3 系統(tǒng)預(yù)覽………………………………………………………………………… 3
2. 系統(tǒng)開發(fā)工具及其介紹……………………………………………………………… 4
2.1 開發(fā)工具的選擇………………………………………………………………… 4
2.2 Visual C++編程特點(diǎn)…………………………………………………………… 5
2.2.1 C++語言的發(fā)展…………………………………………………………… 5
2.2.2 Visual C++ 6.0簡介…………………………………………………… 5
2.2.3 Visual C++ 6.0的開發(fā)環(huán)境…………………………………………… 6
3. 需求分析及可行性分析……………………………………………………………… 7
3.1 需求分析………………………………………………………………………… 7
3.1.1 需求分析的作用………………………………………………………… 7
3.1.2 需求分析過程…………………………………………………………… 7
3.1.3 需求分析的方法………………………………………………………… 7
3. 2 可行性分析………………………………………………………………………8
3.2.1 可行性分析的意義………………………………………………………8
3.2.2 可行性分析報(bào)告…………………………………………………………8
3. 3 系統(tǒng)定義…………………………………………………………………………9
3. 4 系統(tǒng)的組成和功能構(gòu)想…………………………………………………………9
4. 系統(tǒng)總體設(shè)計(jì)方案……………………………………………………………………10
4.1 C/S模式………………………………………………………………………… 10
4.1.1 C/S模式………………………………………………………………… 10
4.1.2 設(shè)計(jì)原則………………………………………………………………… 10
4.2 基于C/S的模塊設(shè)計(jì)……………………………………………………………10
4.2.1 服務(wù)器端模塊設(shè)計(jì)……………………………………………………… 10
4.2.2 客戶端模塊設(shè)計(jì)………………………………………………………… 11
5. 紙牌設(shè)計(jì)……………………………………………………………………………… 13
5.1 紙牌的設(shè)計(jì)…………………………………………………………………… 13
5.2 紙牌的出牌類型……………………………………………………………… 13
6. 詳細(xì)設(shè)計(jì)與系統(tǒng)實(shí)現(xiàn)………………………………………………………………… 15
6.1 出牌記錄和合法……………………………………………………………… 15
6.1.1 出牌記錄和合法性………………………………………………………15
6.2 顯示信息功能………………………………………………………………… 17
6.2.1 分牌………………………………………………………………………17
6.2.2 產(chǎn)生地主………………………………………………………………… 19
6.2.3 牌面顯示………………………………………………………………… 21
6.2.4 出牌顯示………………………………………………………..