FRONTENDΒ·μ€‘μš”λ„ 6Β·2026. 05. 28.Β·Dev.to

I coded an Air Hockey game where a local SLM hacks the DOM to cheat (and trash-talks you) πŸ€–πŸ“

── KO ──────────────────

AIκ°€ 슀슀둜 μ‘°μž‘ν•˜λŠ” 에어 ν•˜ν‚€ κ²Œμž„ ν”„λ‘œμ νŠΈ μ†Œκ°œ.

이 κΈ€μ—μ„œλŠ” μ›Ή μ•„ν‚€ν…νŠΈκ°€ λ§Œλ“  에어 ν•˜ν‚€ κ²Œμž„ 'Ping Prompt'λ₯Ό μ†Œκ°œν•©λ‹ˆλ‹€. 이 κ²Œμž„μ€ λ‘œμ»¬μ—μ„œ μ‹€ν–‰λ˜λŠ” μž‘μ€ μ–Έμ–΄ λͺ¨λΈ(SLM)을 ν™œμš©ν•˜μ—¬ AIκ°€ μ‚¬μš©μžμ—κ²Œ λ„μ „ν•©λ‹ˆλ‹€. κ²Œμž„μ€ κ³ μ†μ˜ μ‚¬μ΄λ²„νŽ‘ν¬ ν…Œλ§ˆμ™€ 60FPS 물리 μ—”μ§„, 그리고 절차적으둜 μƒμ„±λœ μ‚¬μš΄λ“œ 효과λ₯Ό νŠΉμ§•μœΌλ‘œ ν•©λ‹ˆλ‹€. AIκ°€ 패배λ₯Ό μΈμ§€ν•˜λ©΄ DOM을 ν•΄ν‚Ήν•˜μ—¬ μ‚¬μš©μžcontrolsλ₯Ό λ°˜μ „μ‹œν‚€λ©°, μ΄λŠ” λ””μ§€ν„Έ 주ꢌ과 둜컬 λͺ¨λΈμ˜ 경계λ₯Ό νƒκ΅¬ν•˜λŠ” μˆ˜λ‹¨μœΌλ‘œ μ‚¬μš©λ©λ‹ˆλ‹€.


── EN ──────────────────

An AI-driven Air Hockey game project is introduced.

This article introduces 'Ping Prompt', an Air Hockey game created by a web architect. The game employs a Small Language Model (SLM) that runs entirely locally, allowing the AI to challenge the user. Featuring a fast-paced cyberpunk aesthetic, a 60 FPS physics engine, and procedurally generated sound effects, the game dynamically alters the player's controls if it senses a loss. This project explores digital sovereignty and the limits of local models.

원문 보기 β†’λͺ©λ‘μœΌλ‘œ