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
710
機統期末python
ChenPotter
June 19, 2014
Tweet
Share
Featured
See All Featured
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
113
18k
What the flash - Photography Introduction
edds
64
11k
Product Roadmaps are Hard
iamctodd
43
9.6k
Web Components: a chance to create the future
zenorocha
304
41k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
1
1.2k
Designing the Hi-DPI Web
ddemaree
275
33k
VelocityConf: Rendering Performance Case Studies
addyosmani
319
23k
The Invisible Side of Design
smashingmag
293
49k
Imperfection Machines: The Place of Print at Facebook
scottboms
257
12k
Designing on Purpose - Digital PM Summit 2013
jponch
109
6.4k
Mobile First: as difficult as doing things right
swwweet
215
8.5k
5 minutes of I Can Smell Your CMS
philhawksworth
199
19k
Transcript
機率與統計 B0129054 陳松柏
程式碼介紹
主畫面的設定(包括背景顏色,框的顏色,畫 面大小,重新遊戲的頻率)
主函式 : 不外乎包括紅棋及黑棋的設定,選棋時的箭頭 方向
函式:def 進行遊戲(是初始遊戲)內容簡介 進行最一開始遊戲設定
函式:def 進行遊戲(是初始遊戲)內容簡介 此為不斷進行遊戲的判斷、迴圈以及終止的指令
函式:def 進行遊戲(是初始遊戲)內容簡介 若玩家按下關閉則結束,否則繼續進行遊戲
版子的框,畫面顏色,棋子卡進框時的畫面設定
電腦移動動作設定
在這程式裡,有判斷最佳的棋步
此函式的功能 為接續上個 def 電腦移動 (版子)的設定 功能,依照程 式判斷會進行 最佳且不會輸 的棋步,感覺 增添了電腦智
慧。
成為贏家的判斷條件
遊戲執行畫面
遊戲說明 • 當某一方達到四連線即為獲勝 (p.s 不限定方向,可為直的,橫的,亦 可為斜的) • 動動頭腦,遊戲開始!
• 謝謝您的收看 • 有任何指教歡迎留言 To be continue……