Prompt បង្កើត game តែមួយ ប្រើ Claude ពីរ model ខុសគ្នា៖ model ថោកជាងក៏ធ្វើបានល្អ ១០ លើ ១០ ដែរ
Prompt ដែលមាន checklist ច្បាស់លាស់ អាចបង្កើត game ក្នុង browser បែប offline បានយ៉ាងល្អ សូម្បីតែប្រើ model ថោកក៏ដោយ។
របៀបប្រើ
- បើក Claude Code ក្នុង folder ទទេមួយ។
- Copy prompt ដាក់ចូល។
- ទុកឲ្យ AI បង្កើត game ក្នុង file តែមួយ។
- បើក file នោះក្នុង browser ហើយ test លក្ខខណ្ឌនីមួយៗ។
Build a small browser game in a single file, index.html. No external libraries, no images or fonts from the internet, everything drawn with canvas.
Game: "Orbit Courier". You fly a small ship between planets and deliver packages.
Requirements:
One file, index.html, opens by double-click and works offline.
The canvas fills the browser window and stays correct when the window is resized.
Arrow keys or WASD: left/right rotate the ship, up thrusts. The ship keeps its momentum (inertia).
At least 3 planets, each pulls the ship with gravity that gets stronger closer to it.
One planet is marked as pickup. Land on it slowly to get a package, then land on the marked delivery planet to score a point. Then a new pickup and delivery are chosen.
Landing faster than a safe speed is a crash: show an explosion, count the crash, respawn the ship.
A fuel bar drains while thrusting and refills while landed on any planet. With no fuel you cannot thrust.
HUD shows score, fuel, crashes and the current target. When the target planet is off screen, an arrow at the edge points to it.
P pauses and unpauses, R restarts the whole game.
A start screen lists the controls and the game starts on any key.
When you're done, list each requirement by number and say in one line how you implemented it. អានបន្ថែម
សង្ខេប
Luke Sterling (@thelukesterling លើ X) បានយក prompt តែមួយទៅប្រើជាមួយ Claude model ពីរក្នុង Claude Code។ Prompt ហ្នឹងគឺសុំឲ្យបង្កើត game តូចមួយក្នុង browser ដែលមាន file HTML តែមួយ។ ក្នុង game ឈ្មោះ Orbit Courier នេះ យើងត្រូវបើកយានអវកាសចន្លោះភពនានាដើម្បីដឹកអីវ៉ាន់។ Prompt ហ្នឹងមានលក្ខខណ្ឌពិបាកៗចំនួន ១០ ដូចជា៖ កម្លាំងទំនាញ ឥន្ធនៈ ការចុះចតបែបបុកទង្គិច ព្រួញចង្អុលទៅគោលដៅ ការផ្អាក និងការលេងឡើងវិញ។
គាត់បានប្រើ session ថ្មីសម្រាប់ model នីមួយៗ ហើយឆែកលក្ខខណ្ឌនីមួយៗដោយផ្ទាល់ដៃ។ Model ទាំងពីរធ្វើបានទាំង ១០ លក្ខខណ្ឌតាំងពីលើកដំបូង។ Sonnet 5.5 ចំណាយពេលប្រហែល ២ នាទី និងអស់ $0.39។ ចំណែក Opus 5.5 ចំណាយពេលប្រហែល ៥ នាទី និងអស់ $1.32។ Model នីមួយៗថែមមុខងារពិសេសមួយដែលគ្មានអ្នកសុំទៀតផង។ គាត់និយាយថា បើមាន checklist ច្បាស់លាស់ សូម្បីតែ model ថោកក៏អាចធ្វើបានល្អដែរ។
សម្រាប់កម្ពុជា
សិស្សនិស្សិត និងអ្នកបង្កើត game តូចៗនៅស្រុកខ្មែរ ច្រើនតែបង់លុយទិញ AI ជាដុល្លារ។ ការ test នេះបង្ហាញថា បើមានបញ្ជីលក្ខខណ្ឌច្បាស់លាស់ model ថោកក៏អាចបង្កើត game ពេញលេញបានដែរ។ Game នេះដើរ offline ក្នុង browser ដូច្នេះយើងអាចចែករំលែក file តែមួយទៅមិត្តភក្តិ ឬមិត្តរួមថ្នាក់បាន។
កំណត់ចំណាំ
កំណត់សម្គាល់
Post by Luke Sterling (@thelukesterling on X), 27 Nov 2026, read via the X API on 2026-11-29. The prompt is quoted verbatim from his reply (https://x.com/thelukesterling/status/2126316044151140386), where he says it was used word for word in both runs. The times, costs, token counts and line counts are from the post; he says the dollar figures are what Claude Code's /usage shows at API list price. One run for each model, so this is not a full benchmark. The hero clip is from his video in the post. Title, summary and why are in our words.
ប្រភព
បើកប្រភពដើម។
https://x.com/thelukesterling/status/2126315902622666913 (បើកផ្ទាំងថ្មី)
កំណត់សម្គាល់ពីប្រយោគបញ្ជា
ទុក prompt ជាភាសាអង់គ្លេសដដែល។ អ្នកអាចប្តូរគំនិត game បាន តែត្រូវរក្សាលក្ខខណ្ឌជាលេខរៀង។ ប្រាប់ AI ឲ្យឆែកលក្ខខណ្ឌនីមួយៗនៅពេលចប់។
ប្រភេទដំបូងលើករណីមួយ គឺជាគោលបំណងចម្បង។ ប្រភេទបន្ទាប់ គឺជាស្លាកបន្ទាប់បន្សំ។