Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
機統期末python
Search
ChenPotter
June 19, 2014
0
760
機統期末python
ChenPotter
June 19, 2014
Tweet
Share
Featured
See All Featured
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
150
Stop Working from a Prison Cell
hatefulcrawdad
273
21k
Being A Developer After 40
akosma
91
590k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
1
120
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.3k
Odyssey Design
rkendrick25
PRO
1
490
The Curious Case for Waylosing
cassininazir
0
230
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
9.9k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Building Applications with DynamoDB
mza
96
6.9k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
140
The Limits of Empathy - UXLibs8
cassininazir
1
210
Transcript
機率與統計 B0129054 陳松柏
程式碼介紹
主畫面的設定(包括背景顏色,框的顏色,畫 面大小,重新遊戲的頻率)
主函式 : 不外乎包括紅棋及黑棋的設定,選棋時的箭頭 方向
函式:def 進行遊戲(是初始遊戲)內容簡介 進行最一開始遊戲設定
函式:def 進行遊戲(是初始遊戲)內容簡介 此為不斷進行遊戲的判斷、迴圈以及終止的指令
函式:def 進行遊戲(是初始遊戲)內容簡介 若玩家按下關閉則結束,否則繼續進行遊戲
版子的框,畫面顏色,棋子卡進框時的畫面設定
電腦移動動作設定
在這程式裡,有判斷最佳的棋步
此函式的功能 為接續上個 def 電腦移動 (版子)的設定 功能,依照程 式判斷會進行 最佳且不會輸 的棋步,感覺 增添了電腦智
慧。
成為贏家的判斷條件
遊戲執行畫面
遊戲說明 • 當某一方達到四連線即為獲勝 (p.s 不限定方向,可為直的,橫的,亦 可為斜的) • 動動頭腦,遊戲開始!
• 謝謝您的收看 • 有任何指教歡迎留言 To be continue……