How I used AWS Generative AI (Bedrock & Q Developer) to build Hangman game from scratch
This article describes my experience in the AWS Game Builder Challenge 2024 which I took part as a solo individual. Besides using Amazon Q Developer to build Hangman, I also used AWS Amplify Hosting for deployment and Amazon Bedrock to add generative AI capabilities.
4. Initial prompt executed to generate the game
5. Using Q Dev to fix issues encountered in the game
5.1 Fixed issue with package JSON not generated
5.2 Fixed issue with index.html not generated
5.3 Fixed issue with missing index.js file (a critical entry-point in ReactJS)
5.4 Fixed issue with game logic not triggered after a letter is clicked
5.5 Fixed issue with “Play again button” logic
5.6 Fixed issue with game not ending when player ran out of lives
5.8 Enhancement : Add a button “Exit to main page” on the game-over screen
5.10 Fixed issue when in two-player mode and letter has been submitted, the timer fails to refresh
6. Integrating the Hangman game with Amazon Bedrock
7. Testing the Hangman game locally
GitHub URL: https://github.com/JiaweiLin/Project_Hangman
Hangman URL (not optimized on mobile yet): https://main.d44lwcf49q79c.amplifyapp.com/
- npm run build
- serve -s build
- Players can enter a category of their choice in a free-text input box. I would use then Amazon Bedrock GuardRails API to validate both input and output.
- I will use Amazon Incognito to authenticate users to my Hangman game.
- I will integrate Hangman with Amazon DynamoDB and implement a leaderboard page containing the highest scores of players.