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_simulate
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
NekoChou
June 19, 2014
1
180
python_simulate
NekoChou
June 19, 2014
Tweet
Share
Featured
See All Featured
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
65
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.3k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.2k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8k
Six Lessons from altMBA
skipperchong
29
4.2k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
59
50k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1k
My Coaching Mixtape
mlcsv
0
63
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
55k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
140
Building an army of robots
kneath
306
46k
Amusing Abliteration
ianozsvald
0
120
Transcript
+ Python final project -simulate CGU CSIE
B0129002 周鈺婷
+ Simulate 是⼀一個類似 記憶的遊戲,電腦 ⼀一開始會給⼀一個⾳音, 使⽤用者在依據所聽 的的聲⾳音點選正確 圖案,者個遊戲也 有運⽤用在⾳音樂教學
上,讓⼩小朋友更容 易記憶和認識旋律 (培養⾳音感?!)
+ 先引⼊入這⽀支python需要使⽤用到的模 組
+ 設定視窗⼤大⼩小圖案⼤大⼩小與閃爍的速度 快慢
+ ⽤用RGB來設定所此程式需要⽤用的顏⾊色
+ 設定每個顏⾊色⽅方格的反應
+ 再來就是主程式的設定,宣告變數、聲⾳音、 是窗內要顯⽰示的字(遊戲⽅方法和分數)
+ 設定滑⿏鼠按 鍵輸⼊入和鍵 盤輸⼊入
+ 判斷玩家是否點擊圖 案,若點擊正確則換 到下⼀一關,定且更換 背景⾊色
+ 圖案被點擊時所更 換的顏⾊色,還有便 還顏⾊色的速度
+ 變換背景⾊色,⼀一樣⽤用 RGB function,再 random顏⾊色
+ 結束遊戲與設定圖案被點 擊時所更換的顏⾊色
+ 執⾏行遊戲囉~
+ The end