星期四, 9月 19, 2024

主題遊戲製作

 使用 Claude Sonnet 3.5 

遊戲主要元素

  1. 玩家控制企業號太空船。
  2. 使用方向鍵在太空中移動。 
  3. 目標是到達星際基地。 
  4. 需避開不斷出現的克林貢敵船。 
  5. 碰到克林貢船會輸,到達基地則贏。



1. 玩家控制企業號太空船。
2. 使用方向鍵在太空中移動。
3. 目標是到達星際基地。
4. 需避開不斷出現的克林貢敵船。
5. 碰到克林貢船會輸,到達基地則贏。
6. 遊戲畫面為800x600像素的太空背景。
7. 使用SVG繪製簡化的飛船圖形。
8. 計時器記錄生存時間。
9. 有開始指示和結束對話框。





使用 SVG 繪製企業號太空船, 星際基地, 克林貢敵船






星期三, 9月 18, 2024

QuickSort

 產生 QuickSort 程式,使用 JavaScript 語言

[AI 可以產生 C 程式,或 Python 程式...,但如果要直接在瀏覽器執行,須改為JavaScript 程式,然後告訴 AI 一併生成 REACT 元件以產生輸出輸入介面,就可以在瀏覽器上直接執行看到結果或是偵錯。]




視覺化





EX#2 Classic Games

 如何繳交作業 How to turn in your homework exercise.


課堂練習 

Deadline: This Saturday at 23:59

Send all the links to TA victorhuang111013@gmail.com and me chang212@gmail.com by email with subject EX#2 Classic Games[your ID, your name]


練習: 製作旋轉木馬動畫

Merry-go-round


練習: 製做一支打地鼠遊戲 

Whack-a-Mole


練習: 製作河內塔解題動畫

Tower of Hanoi

Lecture 3: Learning Evolution of Technical English 2/2

科普傳播

Laser weapons protect aircraft from surface- and air-launched threats. (Video Credit: Lockheed Martin)


Quiz (F16 with laser weapons)

Words in the episode. Select one word in each item.

1. Unprecedented, unparalleled, unequaled 

2. Infrared, ultraviolet, visible 

3. Shipborne, airborne, carrier 

4. Hospitable, hostile, friendly 

5. Acquisition, relinquishing, abandoning 


Word anatomy:

Infra: infrared, infrastructure

Infrared: infra + red, below (La.) + red (Proto Indo-European)
 
Ultra: ultralight, ultraviolet

ultraviolet: ultra + violet, beyond + violet (from flower), La. + La.

Shipborne: Ship + borne (from bear)
Airborne: air + borne

Proceed: Pro (forward) + ceed (from La. cedere)
Precedent: Pre (before) + cedent (From La. cedere)
Prehistoric: pre + historic
President: pre + sident ( from La. sedere, sit) 

Algorithm: al-Khwarizmi

viper, La.
serpent, La, - Gr. (creep, from herpein)
snake, old Eng. - Proto Germanic

Herpetology, Herpet + ology, Gr.
Reptile, La.  

protect, pro+tect, forward+ cover(shield), Latin

detect: de +tect, off/away, cover, La.

defeat: de + feat, away + make, undo, unmake,  La.


Fact, something done, deed, La. 
Factor
Factory

科技英文的演進

Supplement


Domino
AD, Anno Domini

What's your name?

星期一, 9月 16, 2024

星期日, 9月 15, 2024

Algorithm

 N!



AI 可以產生 C 程式,或 Python 程式...,但如果要直接在瀏覽器執行,須改為JavaScript 程式,然後告訴 AI 一併生成 REACT 元件以產生輸出輸入介面,就可以在瀏覽器上直接執行看到結果或是偵錯。

Hanoi Problem

demospeedytimely


Hint 1:

Tower of hanoi





Incorrect sequence




Correct 




Algorithm in C







自由探索 Hanoi 主題: 程式設計,程式執行,動畫,遊戲,...


Hint 2: 其他作法


illustrate



animation 

生成類似多格漫畫



Add REACT

Whack-a-Mole

打地鼠, Whack-a-Mole Game





生成原始版




不會動(出槌)




繪製可愛元素





加入Q版地鼠(加入後可是看不見)






修復









加入音效(可惜沒馬上成功)




告知聽不到,修復後成功了(限Windows版)


自由探索打地鼠主題: 程式設計,程式執行,動畫,遊戲,...,或是其他遊戲


智慧,運算與演化

Opening Remarks:

運算思維 - 演算法 CPU
       I
人類行為 - 類神經網路 - GPU/NPU

智慧 - 智人  
IQ
EQ

情緒與生命演化

魚 400,000,000 年
兩棲 300,000,000
恐龍 200,000,000
哺乳類  56,000,000
直立人 2,000,000
智人 200,000


LLM (大型語言模型) - AI - Future

洞察,直覺
(相對論,橋樑最大應力集中點)

星期二, 9月 03, 2024

EX#1 科技英文的歷史與演進

如何繳交作業 How to turn in your homework exercise.


課堂練習 

Deadline: This Saturday at 23:59

Send all the links to TA victorhuang111013@gmail.com and me chang212@gmail.com by email with subject EX#1 English Evolution [your ID, your name]


Greek Influence on the English Language

1. Press Remix Artifact and then explore one of the options Claude.ai suggests. Or explore as you like.
    For example, you may create Flippable Info Cards.



2. comprehension test: (your prompt to AI, just copy and paste it)

Prepare 10 multiple choice problems from the paste text above to test comprehension. Generate one problem at a time. Then you request an answer. After you receive one, grade it. Then generate next problem. In the end tell me how many are correctly answered. 


3. Make your answers and scores an artifact. Example 




4. Make your quiz an artifact. Example


5. Publish each artifact and copy its link. Send all the links to TA victorhuang111013@gmail.com and me chang212@gmail.com by email with subject EX#1 English Evolution.