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
機率與統計
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
maggie
June 18, 2014
Research
0
260
機率與統計
B0129052_郭驊瑩
maggie
June 18, 2014
Tweet
Share
Other Decks in Research
See All in Research
Agentic AI フレームワーク戦略白書 (2025年度版)
mickey_kubo
1
120
Satellites Reveal Mobility: A Commuting Origin-destination Flow Generator for Global Cities
satai
3
510
説明可能な機械学習と数理最適化
kelicht
2
940
生成AI による論文執筆サポート・ワークショップ ─ サーベイ/リサーチクエスチョン編 / Workshop on AI-Assisted Paper Writing Support: Survey/Research Question Edition
ks91
PRO
0
140
ForestCast: Forecasting Deforestation Risk at Scale with Deep Learning
satai
3
390
Mamba-in-Mamba: Centralized Mamba-Cross-Scan in Tokenized Mamba Model for Hyperspectral Image Classification
satai
3
600
自動運転におけるデータ駆動型AIに対する安全性の考え方 / Safety Engineering for Data-Driven AI in Autonomous Driving Systems
ishikawafyu
0
130
財務諸表監査のための逐次検定
masakat0
1
250
生成AIとうまく付き合うためのプロンプトエンジニアリング
yuri_ohashi
0
140
Remote sensing × Multi-modal meta survey
satai
4
710
世界モデルにおける分布外データ対応の方法論
koukyo1994
7
1.5k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
1
100
Featured
See All Featured
Marketing to machines
jonoalderson
1
4.6k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
120
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
22k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
What does AI have to do with Human Rights?
axbom
PRO
0
2k
Principles of Awesome APIs and How to Build Them.
keavy
128
17k
Accessibility Awareness
sabderemane
0
56
Side Projects
sachag
455
43k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3k
Rails Girls Zürich Keynote
gr2m
96
14k
Optimizing for Happiness
mojombo
379
71k
Transcript
機率與統計 期末報告
這段程式是我在宣告一些函式用的 程式碼解說
這邊是在設定視 窗的長、寬,第 一行是設定一開 始進去旋轉的速 度,中間那段是 設定顏色,下面 是上下左右
這邊是在顯示一進 去畫面的字,設定 視窗大小,呼叫啟 動的函示
這邊是遊戲啟動 的函式,設定一 開始的x、y,下 面是得到蘋果的 隨機位置
上面是看蟲蟲有沒有超過視窗 下面是檢查蟲蟲是否有吃掉蘋果
如果蟲蟲有吃掉蘋果的話,他就會增加一個身體
遊戲一開始的畫面 右下角有“Press a key to play”,他的 字體顏色跟要放的 位置都是在上面這 個函式設定的,下
面的函示是在檢查 你是否有按下任意 鍵
這邊是在設定一進入的 畫面,一進入有會旋轉 的框框,框框的顏色跟 大小都是在這邊設定的
上面是終止的 函式,中間是 在算x、y的隨 機位置,下面 是顯示“Game Over”字樣的 一些設定,如 果結束後再按 任意鍵,遊戲
又會再開始
遊戲開始後右上角有分數,上面的函式就是在顯示 分數的,下面的函式是在設定蟲蟲的顏色、大小
上面的函式是在 設定蘋果的位置、 顏色和大小,下 面是在畫背景的 網格顏色、尺寸