<< Home | Tech
Fully functional browser Tic-tac-toe game created
| Area | Tech |
| AI used | Claude |
| Source | r/BuildWithClaude |
| Posted | 2026-09-21 |
The move
Use an existing app scaffold and provide the AI with framework-specific context files to generate a new application.Steps
- Set up a base project using an existing SmallJS example folder.
- Run the framework's context script to generate a documentation file for the AI.
- Open the AI interface in VSCode and provide the framework context.
- Prompt the AI to convert the base class into your desired application class.
- Select the option to convert the entire app when prompted by the AI.
Prompt for your AI
Using the provided SmallJS context, convert the class [CurrentClassName] to a [NewAppDescription] class. Ensure all unit and GUI tests are updated to match the new logic.
What happened
The user wanted to build a Tic-tac-toe game using the SmallJS framework. They set up a base project using a Counter app template and provided Claude with a file containing SmallJS contextual knowledge. Claude generated the full application code, including unit and GUI tests, based on simple prompts.Watch out
The AI may struggle if the provided context file is outdated or incomplete. Always verify that the generated tests pass before assuming the code is stable.Give it to your agent
Read https://howtheyuse.ai/p/fully-functional-browser-tic-tac-toe-game-created.md and help me do this.