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
機統計期末報告
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
sarah61633
June 20, 2014
Research
300
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
機統計期末報告
sarah61633
June 20, 2014
Other Decks in Research
See All in Research
最先端NLP勉強会2026 論文紹介:Reasoning with Sampling: Your Base Model is Smarter Than You Think (ICLR 2026 paper)
kogoro
4
720
JICA QUEST 共創×革新プログラム Impact Report(海ノ向こうコーヒー)
ontheslope
0
850
PHTalks Bengaluru - SSRF When All Else Fails
dk999
0
1.2k
【中間報告】国会議員の立法・政策実務を支える環境を巡る現状と課題
polipoli
0
770
ICAITD 2026 Oral Presentation
rikkabotan7
0
110
2025年度秋葉原ウォーカブルプロジェクト調査報告 「アキバらしいウォーカブル」とは何か
izumiyama_lab
1
250
SLAMはどこまで解決されたのか?
tomonom
0
1.5k
フィジカルAIの社会実装に向けて -AIエージェントからAgentic Roboticsへ-
hf149
1
2.2k
Bilan travail en élevage : première restitution des enquêtes 2025-2026
institutdelelevage
PRO
0
100
20260624 NLP colloquium: 単一のhubテキストがCLIPを壊す:hubnessによる埋め込みの脆弱性特定
de9uch1
2
300
COMETAを用いたデータ民主化運動の歴史
sazimai
0
290
GeoAgent勉強会 論文紹介と強い推論モデルが与えるインパクト
satai
5
380
Featured
See All Featured
エンジニアに許された特別な時間の終わり
watany
109
250k
GraphQLとの向き合い方2022年版
quramy
50
15k
Balancing Empowerment & Direction
lara
6
1.3k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
Practical Orchestrator
shlominoach
192
12k
Building a Scalable Design System with Sketch
lauravandoore
464
34k
How to train your dragon (web standard)
notwaldorf
96
6.9k
Context Engineering - Making Every Token Count
addyosmani
9
1.2k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2k
What the history of the web can teach us about the future of AI
inesmontani
PRO
2
740
Rebuilding a faster, lazier Slack
samanthasiow
85
9.7k
The Curious Case for Waylosing
cassininazir
1
570
Transcript
機率統計期末 報告 B0129005 趙千嫣
顏色戰爭 1.首先從左上角開始,以最左上角為起始色塊, 系統隨機給鄰近色塊顏色。 2.下方調色盤有5個顏色,每挑選一個顏色, 起始色塊會變成所挑選的顏色,鄰近色塊假如 也為該色,則與起始色塊融為一個更大的色塊。 3.盡可能在機會次數用盡前,將整個框內的顏
色融為一體。 4.設定中設有3種難度和3種色塊大小,還有新 顏色可以選擇。
使用函式: def main() def 確認是否結束() def 贏了(色板)
def 顯示設定() def 繪製顏色配置方塊(x, y, schemeNum) def 快閃邊框動畫(color, 色板, 動畫速度=30) def 顏色變化動畫(色板, 當按到調色盤, 動畫速度=25) def 產生隨機色板(width, height, 難度=中等) def 畫標題和按鈕() def 繪製色板(色板, transparency=255) def 調色盤上色() def 生命值上色(currentLife) def 從調色盤取得顏色(x, y) def 顏色填充(色板, 之前的顏色, 新的顏色, x, y) def 左側箱子設定(箱子x, 箱子y)
程式解釋: 1.在開始Pygame之前,先將Pygame Library 下載下來,並安裝完成。 2.設定3種方塊大小、色板大小與遊戲可動次數。
3.設定大空間與調色盤大小、難度和起始難度, 起始難度從中等開始,方便玩家之後選擇難易 度。
4.設定播放音樂和色塊顏色,再將會用到之其 餘配色查詢完後輸入,並設定好配色格式。
5.主程式:設定時間與顯示,將圖檔讀出,判 斷滑鼠位置之外還產生隨機色板。
6.設定遊戲結束開始畫面,並讓按鈕們產生作 用和色板和調色盤的上色。
7.設定調色盤的作用,以及遊戲動畫,最後是 輸贏是否要重整遊戲的判斷。
8.下面是4個函式,用於確認是輸贏以及遊戲動畫。
9.以下為顯示設定的函式,包括重整、設定、 色塊色板的顯示。
10.下面3個函式將顏色色塊擴展,然後將標題 和按鈕連結下一畫面。
11.把六種顏色擺放到畫面底部當調色盤,並從 之取得該顏色,最後是將生命值上色。
12.之後將顏色取代成新的顏色,並一步一步推 進就完成了!
The End