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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
ChenPotter
June 19, 2014
0
760
機統期末python
ChenPotter
June 19, 2014
Tweet
Share
Featured
See All Featured
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
The Limits of Empathy - UXLibs8
cassininazir
1
210
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
450
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
430
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
51
The Invisible Side of Design
smashingmag
302
51k
Making the Leap to Tech Lead
cromwellryan
135
9.7k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
160
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
94
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.1k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
53
Transcript
機率與統計 B0129054 陳松柏
程式碼介紹
主畫面的設定(包括背景顏色,框的顏色,畫 面大小,重新遊戲的頻率)
主函式 : 不外乎包括紅棋及黑棋的設定,選棋時的箭頭 方向
函式:def 進行遊戲(是初始遊戲)內容簡介 進行最一開始遊戲設定
函式:def 進行遊戲(是初始遊戲)內容簡介 此為不斷進行遊戲的判斷、迴圈以及終止的指令
函式:def 進行遊戲(是初始遊戲)內容簡介 若玩家按下關閉則結束,否則繼續進行遊戲
版子的框,畫面顏色,棋子卡進框時的畫面設定
電腦移動動作設定
在這程式裡,有判斷最佳的棋步
此函式的功能 為接續上個 def 電腦移動 (版子)的設定 功能,依照程 式判斷會進行 最佳且不會輸 的棋步,感覺 增添了電腦智
慧。
成為贏家的判斷條件
遊戲執行畫面
遊戲說明 • 當某一方達到四連線即為獲勝 (p.s 不限定方向,可為直的,橫的,亦 可為斜的) • 動動頭腦,遊戲開始!
• 謝謝您的收看 • 有任何指教歡迎留言 To be continue……