《程序設(shè)計(jì)課程設(shè)計(jì)》題目要求_第1頁(yè)
《程序設(shè)計(jì)課程設(shè)計(jì)》題目要求_第2頁(yè)
免費(fèi)預(yù)覽已結(jié)束,剩余1頁(yè)可下載查看

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、程序設(shè)計(jì)課程設(shè)計(jì)題目要求本次課程設(shè)計(jì)要求同學(xué)們使用 編程語(yǔ)言,以面向?qū)ο缶幊谭绞?,開(kāi)發(fā)一個(gè)狐貍與獵狗棋、五子棋或黑白棋游戲。這三個(gè)游戲的規(guī)則見(jiàn)本文檔附件。開(kāi)發(fā)分為兩個(gè)階段進(jìn)行迭代,對(duì)每個(gè)階段的要求如下:1. 第一階段:為期 2 周a) 實(shí)現(xiàn)功能:1) 能夠提供圖形化界面供棋手下棋,推薦但不限定使用 ;2) 能夠?qū)崿F(xiàn)人-人在同一臺(tái)機(jī)器上下棋,即不需要實(shí)現(xiàn)網(wǎng)絡(luò)對(duì)戰(zhàn),也不需要實(shí)現(xiàn)人機(jī)對(duì)戰(zhàn);3) 能夠判斷棋手所下的每一手棋是否合法;4) 局上繼續(xù)下棋。b) 提交制品:1) 源代碼:中間必須編寫(xiě)有助于程序理解的注釋?zhuān)?) 設(shè)計(jì)文檔:描述設(shè)計(jì)思路和方案,根據(jù)給定的模板寫(xiě)。2. 第二階段:為期 2 周a)

2、實(shí)現(xiàn)功能:1) 能夠?qū)崿F(xiàn)人機(jī)對(duì)戰(zhàn),但是不要求機(jī)器一定要每局都贏;2) 能夠?qū)ζ遄V進(jìn)行記錄,并能夠在棋盤(pán)上顯示棋譜;3) 棋之間的時(shí)間間隔。b) 提交制品:1) 源代碼:中間必須編寫(xiě)有助于程序理解的注釋?zhuān)?) 設(shè)計(jì)文檔:描述設(shè)計(jì)思路和方案,根據(jù)給定的模板寫(xiě);3) 總結(jié)文檔:對(duì)課程設(shè)計(jì)全過(guò)程的總結(jié)。同學(xué)們還可以在上述基礎(chǔ)上有選擇地設(shè)計(jì)并實(shí)現(xiàn)擴(kuò)展功能,包括:1. 指定擴(kuò)展功能:a) 換膚:更換棋盤(pán)背景和棋子形狀、顏色、圖案等;b) 回合限時(shí):對(duì)每步棋限定時(shí)間,超時(shí)懲罰,例如判輸、隨機(jī)走棋,或者是空過(guò)等;c) 棋手等級(jí)管理:記錄每位棋手的輸贏局?jǐn)?shù),并自定義等級(jí)評(píng)定等;d) 機(jī)器角色扮演:可以讓機(jī)器棋手

3、進(jìn)行角色扮演,在人類(lèi)棋手思考過(guò)程中出現(xiàn)對(duì)話,例如“快點(diǎn)呀!”“沒(méi)招了吧!”等。可以參考三國(guó)五子棋中的類(lèi)似功能。2. 其他自定義定擴(kuò)展功能:這部分功能完全由個(gè)人發(fā)揮,沒(méi)有限制。而成。各部分所占比例如下:1. 平時(shí)成績(jī):50%a) 第一階段提交制品:15%1) 程序設(shè)計(jì)質(zhì)量:10%,考核依據(jù)為源代碼和設(shè)計(jì)文檔2) 程序編寫(xiě)質(zhì)量:,考核依據(jù)為源代碼b) 第二階段提交制品:25%1) 程序設(shè)計(jì)質(zhì)量:15%,考核依據(jù)為源代碼和設(shè)計(jì)文檔2) 程序編寫(xiě)質(zhì)量:10%,考核依據(jù)為源代碼c) 學(xué)生參與課程的程度:10%2. 答辯成績(jī):50%a) 程序演示:30%1) 實(shí)現(xiàn)第一階段與第二階段的所有功能:20%2)

4、實(shí)現(xiàn)擴(kuò)展功能:10%b) 答辯:20%1) 宣講:10%2) 回答問(wèn)題:10%c) 答辯形式:每位同學(xué)先進(jìn)行自述,并演示程序,然后回答答辯委員組的提問(wèn)。其中,自述和演示程序的時(shí)間為 10 分鐘,回答問(wèn)題 10分鐘,共 20 分鐘。d) 其中指導(dǎo)教師占 60%,每個(gè)學(xué)生指導(dǎo)助教占 20%,其他所有助教占20%附件:三個(gè)棋類(lèi)游戲的規(guī)則狐貍與獵狗棋(Fox and Hounds)以下內(nèi)容來(lái)自維基百科 /wiki/Fox_and_houndsThis version (also called Wolf and Sheep, Hounds and Hare, or Devil andTailors) i

5、s played on an 88chess/checkerboard., and only the dark squares are used.The four hounds are initially placed on the dark squares at one edge of the board; thefox is placed on any dark square on the opposite edge. The objective of the fox is tocross from one side of the board to the other, arriving

6、at any one of the houndsoriginal squares; the hounds objective is to prevent it from doing so.The hounds move diagonally forward one square. The fox moves diagonally forwardor backward one square. There is, however, no jumping, promotion, or removal ofpieces. The play alternates with the fox moving

7、first. The player controlling thehounds moves only one of them per turn.The fox is trapped when a hound occupies all four of its potential move squares.Alternatively, two hounds may trap the fox against an edge of the board (other thantheir original home-row). There is even one corner (see diagram)

8、where a singlehound may do the trapping. It may be noted that should a hound reach the foxsoriginal home row, it will no longer have any potential moves.Perfect play will result in a hounds victory, even if the fox is allowed to choose anystarting square and to pass his turn once during the game.B.

9、五子棋(Gomoku)以下內(nèi)容來(lái)自維基百科 /wiki/Gobangfrom: http:/www.gnustep.it/nicola/Applications/Gomoku/Gomoku is an abstract strategy board game. Also called Gobang or Five in a Row, itis traditionally played with Go pieces (black and white stones) on a go board (19x19intersections); however, because once placed,

10、pieces are not moved or removed fromthe board, gomoku may also be played as a paper and pencil game. This game isknown in several countries under different names.Black plays first, and players alternate in placing a stone of their color on an emptyintersection. The winner is the first player to get

11、an unbroken row of five stoneshorizontally, vertically, or diagonally.The name Gomoku is from the Japanese language, in which it is referred to asgomokunarabe (五目並). Go means five, moku is a counter word for pieces andnarabe means line-up. The game is also popular in Korea, where it is called omok(五

12、目) which has the same structure and origin as the Japanese name. It is saidto have originated in China with the name Wu Zi Qi (五子棋). In the nineteenthcentury, the game was introduced to Britain where it was known as Go Bang, said tobe a corruption of Japanese goban, said to be adopted from Chinese k

13、i pan (q bn)chess-boardC. 黑白棋(Reversi/Othello)以下內(nèi)容來(lái)自維基百科 /wiki/ReversiReversi (marketed by Pressman under the trade name Othello) is a strategy boardgame for two players, played on an 8x8 board (similar to chess and checkers, with thetheoretically meaningless difference that the board in reversi is

14、usually monochromeaside from lines separating the individual squares).There are 64 identical pieces called disks (often spelled discs), which are light onone side and dark on the otherphysically with an actual set, or conceptually viacomputerto correspond with the opponents in a game. In most cases

15、a gameconsists of placing all of these up to a full board, but exceptions occur if neitherplayer has a legal move.Though the original rules of reversi were such that each player was limited to usingno more than half of the disks (those in possession at the start), this rule has long beenout of commo

16、n practice; and, if using a physical board and pieces, the player whoseturn it is simply retrieves a disk that is in possession of the opponent as needed. Thismeans that there is now only one way a player will pass (always involuntarily) ratherthan place a disk, while formerly there were two.Each players objective is generally to have as many disks ones own color at the endas possible and for ones opponent to have as few or, technically in consideration ofthe occasional game in which not all disks are placed, that the difference between thetwo should

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論