์ต๊ทผ AWS์์ ์งํํ Build Games with Amazon Q CLI Challenge์ ์ฐธ์ฌํ์ต๋๋ค. Amazon Q CLI๋ฅผ ์ด์ฉํด ์ฝ๊ณ ์ฌ๋ฏธ์๋ ๊ฒ์์ ๋ง๋ค๋ฉด์ ์ป์ ๊ฒฝํ์ ๊ณต์ ํ๋ ค๊ณ ํฉ๋๋ค.
์ ๊ฐ ์ ํํ ๊ฒ์์ ์ซ์์ผ๊ตฌ(Number Baseball) ์ ๋๋ค. ์ซ์์ผ๊ตฌ๋ ์ง๊ด์ ์ด๋ฉด์๋ ์ ๋ต์ ์ธ ์ฌ๊ณ ๋ฅผ ์๊ตฌํ๋ ๊ฒ์์ด๋ผ ๋๊ตฌ๋ ์ฝ๊ฒ ์ ๊ทผํ ์ ์๊ณ , ๋์ด๋ ์กฐ์ ์ด ์ฌ์ ๋ค์ํ ํ๋ ์ด์ด์ธต์ ๋ง๊ฒ ํ์ฅํ ์ ์์ต๋๋ค. ๊ฐ๋ฐ ์ธ์ด๋ฅผ ๋ฐฐ์ธ ๋ ๊ผญ ํ๋ฒ์ฉ ๋ง๋ค์ด๋ณด๋ ๊ฒ์์ผ๋ก Amazon Q CLI ๋ฅผ ์ด์ฉํ๋ฉด ์ผ๋ง๋ ์ฝ๊ฒ ๋ง๋ค ์ ์๊ณ , AI๊ฐ ์ผ๋ง๋ ์ ๋ง๋ค ์ ์๋์ง ๊ถ๊ธํ์ต๋๋ค.
์ฌ์ค ๋ช
ํํ ์๊ตฌ ์ฌํญ์ ์ ์ํด์ผ AI๊ฐ ๋ณด๋ค ์ ํํ ๊ฒฐ๊ณผ๋ฅผ ๋ผ ์ ์๋ค๊ณ ์๊ณ ์์ต๋๋ค. ChatGPT๋ฅผ ์ผ์์์, ์
๋ฌด์์ ์ฐ๋ฉด์ ๋๋์ ์ด์์ผ๋, Aamzon Q CLI ์๊ฒ๋ ์ ๋ง ๋ด๊ฐ ์ํ๋ ๋ด์ฉ์ ๊ตฌ์ฒด์ ์ด์ง ์์์ง๋ง 'ํญ' ๋์ ธ๋ณด์์ต๋๋ค.
๊ฒฐ๊ณผ์ ์ผ๋ก๋ ๋๋ฌด ๋ฌด์ฌํ๊ฒ ๋์ง ์์ฒญ์ ๊ธฐ๋ ์ด์์ ์๋ฒฝ์ ๊ฐ๊น์ด ๊ฒฐ๊ณผ๋ฅผ ๋งค๋ฒ ๋ง๋ค์ด๋์ต๋๋ค.
Make a number baseball game using HTML5 and CSS only, in the folder /Users/kabkee/Downloads.
์ด๋ ๊ฒ ๋ช ํํ๊ฒ ์ฌ์ฉ ๊ธฐ์ ๊ณผ ์ ์ฅํ ์์น๋ฅผ ์ง์ ํ์ต๋๋ค.
์ฒซ ๊ฒฐ๊ณผ๋ฌผ์ด ์ข์์ง๋ง, ๋์ด๋ ํ์ฅ ๊ธฐ๋ฅ์ด ํ์ํ์ต๋๋ค
์ฌ์ค "๋๋ฌด ์ฝ๊ฒ" ๋ง๋ค์ด๋ด๋ ์ผ๋ง๋ ๋ฅ๋ ฅ์ด ๋๋์ง ๋ณด๊ณ ์ถ์ด ์ถ๊ฐ ํ๋กฌํํธ๋ฅผ ๊ณ ๋ฏผํ๋ค ๋์ด๋ ํ์ฅ์ ์์ผฐ์ต๋๋ค:
Thatโs a great result, and I like the design as well. Iโd like to add a feature that allows the user to switch the digit count from 3 to 4. The 3-digit baseball game is the original one, but itโs somehow quite easy.
AI์๊ฒ ์ด์ ์์ ์ ๋ํ ๊ธ์ ์ ํผ๋๋ฐฑ๊ณผ ํจ๊ป ์ถ๊ฐ ๊ธฐ๋ฅ์ ๋ช ํํ ์์ฒญํ์ฌ ์์ฐ์ค๋ฌ์ด ํ์ฅ์ ์ ๋ํ์ต๋๋ค.
๊ฒ์์ด ๊ธธ์ด์ง๋ฉด์ ๊ธฐ๋ก ํ์ธ ์์ญ์ด ์๋๋ก ๋์ด๋จ์ ๋ฐ๋ผ ํ๋ฒ์ ํ์ธํ๊ธฐ ์ด๋ ต๊ณ ์คํฌ๋กค์ ๋ด๋ ค์ผํ์ฌ ์ข/์ฐ ๋ฐฐ์น ํ์์ผ๋ก UX๋ฅผ ๊ฐ์ ํ์ต๋๋ค:
All works perfectly. As the game gets harder to play, the guess history keeps getting longer downward, so I cannot see the whole page at once. Split the screen into two areas โ left for the game layout and right for the guess history.
๋ช ํํ UI ๊ตฌ์กฐ ๋ณ๊ฒฝ์ ์์ฒญํด UX ๊ฐ์ ์ ์ด๋์์ต๋๋ค.
์ผ๋ฐ์ ์ผ๋ก ์ด๋ฐ ๊ฒ์ ์ ์์๋ ์ต์ ๋ช ์๊ฐ์ ๋์์ธ, ํ๋ก๊ทธ๋๋ฐ, ํ ์คํธ ์๊ฐ์ด ํ์ํฉ๋๋ค. Amazon Q CLI๋ฅผ ์ด์ฉํด 1๋ถ ์ด๋ด์ ๋์ ๊ฐ๋ฅํ ๊ฒ์์ ์ ์ํ์ฌ, 90% ์ด์์ ์๊ฐ์ ์ ์ฝํ ์ ์์์ต๋๋ค. ์ฌ์ค ๊ทธ๋ฅ ๋ง๋ฒ ๊ฐ์ต๋๋ค. 90%๊ฐ ์๋๋ผ ์์ฒญํ๋ฉด ๋ฐ๋ก ์ฃผ๋ ์ง๋ ๊ฐ์ ๋๋์ด์์ต๋๋ค.
Amazon Q CLI๊ฐ ์๋์ผ๋ก ์์ฑํ ๋์ด๋ ์กฐ์ ๊ธฐ๋ฅ ์์ ์ฝ๋ ์ผ๋ถ์ ๋๋ค. ์ฌ์ค ์ ๋ฐ์ ์ผ๋ก ๋ค ์ ๊ธฐํฉ๋๋ค :
function switchDifficulty() {
digitCount = document.querySelector('input[name="difficulty"]:checked').value;
resetGame();
createInputFields();
document.querySelector('.subtitle').textContent = digitCount + "-digit Number Baseball";
}
์ด ํจ์๋ ์ฌ์ฉ์๊ฐ ์ ํํ ๋์ด๋์ ๋ฐ๋ผ ์ ๋ ฅ ํ๋๋ฅผ ๋์ ์ผ๋ก ์กฐ์ ํฉ๋๋ค.



Amazon Q CLI ๋๋ถ์ ๊ฐ๋ฐ ์๊ฐ์ ๋จ์ถํ๊ณ , ํ์ง ๋์ ๊ฒฐ๊ณผ๋ฌผ์ ์ฝ๊ฒ ์ป์ ์ ์์์ต๋๋ค. AI๋ฅผ ํ์ฉํ ํจ๊ณผ์ ์ธ ํ๋ก๊ทธ๋๋ฐ ๊ฒฝํ์ ํตํด, ์์ผ๋ก์ ํ๋ก์ ํธ์์๋ ์ ๊ทน ํ์ฉํ๊ณ ์ ํฉ๋๋ค!