Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
機統期末python
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
ChenPotter
June 19, 2014
780
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
機統期末python
ChenPotter
June 19, 2014
Featured
See All Featured
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
1
280
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
530
GraphQLとの向き合い方2022年版
quramy
50
15k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.6k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3.1k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
460
Crafting Experiences
bethany
1
380
Google's AI Overviews - The New Search
badams
0
1.6k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
540
Reflections from 52 weeks, 52 projects
jeffersonlam
356
22k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.5k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.8k
Transcript
機率與統計 B0129054 陳松柏
程式碼介紹
主畫面的設定(包括背景顏色,框的顏色,畫 面大小,重新遊戲的頻率)
主函式 : 不外乎包括紅棋及黑棋的設定,選棋時的箭頭 方向
函式:def 進行遊戲(是初始遊戲)內容簡介 進行最一開始遊戲設定
函式:def 進行遊戲(是初始遊戲)內容簡介 此為不斷進行遊戲的判斷、迴圈以及終止的指令
函式:def 進行遊戲(是初始遊戲)內容簡介 若玩家按下關閉則結束,否則繼續進行遊戲
版子的框,畫面顏色,棋子卡進框時的畫面設定
電腦移動動作設定
在這程式裡,有判斷最佳的棋步
此函式的功能 為接續上個 def 電腦移動 (版子)的設定 功能,依照程 式判斷會進行 最佳且不會輸 的棋步,感覺 增添了電腦智
慧。
成為贏家的判斷條件
遊戲執行畫面
遊戲說明 • 當某一方達到四連線即為獲勝 (p.s 不限定方向,可為直的,橫的,亦 可為斜的) • 動動頭腦,遊戲開始!
• 謝謝您的收看 • 有任何指教歡迎留言 To be continue……