【正文】
山東凱文科技職業(yè)學(xué)院2022 屆畢業(yè)論文基于 Visual C++的五子棋游戲設(shè)計(jì)——主要算法的設(shè)計(jì)與實(shí)現(xiàn)學(xué) 院: 信息學(xué)院 學(xué)生姓名: XXX 指導(dǎo)教師: 張老師 專(zhuān) 業(yè): 軟件技術(shù) 班 級(jí): 08 軟件 1 班 完成時(shí)間: 2022 年 6 月 29 日 山東凱文科技職業(yè)學(xué)院摘 要本論文主要闡述以面向?qū)ο蟮某绦蜷_(kāi)發(fā)語(yǔ)言 VC++為開(kāi)發(fā)工具,設(shè)計(jì)一個(gè)五子棋游戲。本系統(tǒng)是個(gè)小型游戲,可以單機(jī)使用,也可以網(wǎng)絡(luò)兩個(gè)人游戲,也可以和電腦進(jìn)行游戲。論文首先介紹了開(kāi)發(fā)背景及開(kāi)發(fā)語(yǔ)言的介紹。然后介紹設(shè)計(jì)該游戲的框架結(jié)構(gòu),然后介紹了程序的設(shè)計(jì)過(guò)程,以及程序的相關(guān)算法。其中算法是我主要負(fù)責(zé)的,算 法 ( Algorithm) 是 一 系 列 解 決 問(wèn) 題 的 清 晰 指 令 , 算 法 代 表著 用 系 統(tǒng) 的 方 法 描 述 解 決 問(wèn) 題 的 策 略 機(jī) 制 。 也 就 是 說(shuō) , 能 夠 對(duì) 一 定 規(guī) 范 的 輸 入 , 在 有 限 時(shí) 間 內(nèi) 獲 得所 要 求 的 輸 出 。 如 果 一 個(gè) 算 法 有 缺 陷 , 或 不 適 合 于 某 個(gè) 問(wèn) 題 , 執(zhí) 行 這 個(gè) 算 法 將 不 會(huì) 解 決 這 個(gè) 問(wèn) 題 。不 同 的 算 法 可 能 用 不 同 的 時(shí) 間 、 空 間 或 效 率 來(lái) 完 成 同 樣 的 任 務(wù) 。關(guān)鍵詞:游戲,系統(tǒng),圖片,算法, Visual C++ Abstract This paper mainly expounds on objectoriented programming language for development tools, design of vc + + a renju game. This system is a small game, can use single, also can work two game, can also and puter games. It firstly introduces the development background and development of language is introduced. And then introduced the design frame structure of the game, then introduces the design process of the program, and the related algorithm procedures. Among them is I mainly responsible for the Algorithm, the Algorithm (done) is a series of the solution to the problem of clear instructions, the Algorithm represents a systematic approach describe the solving strategy mechanism. That is, to some of the standard input, in limited time get required output. If an algorithm with a defect, or is not suitable for a problem is, carry out the algorithm will not solve the problem. Different algorithm may use different time, space or efficiency to plete the same task. Keywords: The game, the system, pictures,algorithm, Visual C + + 山東凱文科技職業(yè)學(xué)院目 錄1 引言 ...............................................................................................................................................................1 五子棋介紹 .........................................................................................................................................1 開(kāi)發(fā)背景 .............................................................................................................................................1 開(kāi)發(fā)環(huán)境及運(yùn)行環(huán)境 .........................................................................................................................1 開(kāi)發(fā)環(huán)境 ......................................................................................................................................1 運(yùn)行環(huán)境 ......................................................................................................................................12 C++簡(jiǎn)介 .....................................................................................................................................................23 軟件架構(gòu) ....................................................................................................................................................2 棋盤(pán)類(lèi) .................................................................................................................................................3 游戲模式類(lèi) .........................................................................................................................................34 主要算法 ....................................................................................................................................................4 判斷勝負(fù) .............................................................................................................................................4 人機(jī)對(duì)弈算法 ..............................................................................................................