AI Coding Tools Cheatsheet
Coding apps, games or website with AI feels like a revolution of sorts. Recently coded a slot machine game using a set of AI tools that are quite powerful yet still only scratching the surface.
Tools for coding the slot machine.
- Roo-code
- VScode
- Anthropic
- Render for hosting a node App.
Install the roo code module within VScode
Roo-code runs within VScode as a module. So installation is the same as any other vscode module.
Setup
- Add your Anthropic key. You get 5 dollars for free when you start your account but that will run out pretty quickly and you will need to buy more credits.
- Choose your model
How it works
Within VScode, Within Roo-code you can type your prompt. Roo-code will attempt to create your request. You can see Roo-code creating your application based on your prompt.
For my use case I wanted to make a pirate themed slot machine game that all my friends could play and compete against each other.
Play the Pirates slot machine game
- Roo-code will create the required, html, css and js files
- Roo-code will test the code to ensure it works
- You can add new features and Roo-code will implement them by making changes to the existing code base.
- Roo-code will tell you what its done every step of the way. This is a nice educational feature as you can also learn more about coding this way
Benefits of working in Roo-code
- See recent task
- See most expensive tasks
If you need to visit an old project Roo-code provides a history option for this.
Hosting your app
- For simple app such as html, js, css you can host for free at netlify
- For a more advanced app such as NodeJs app you can host for free at render.com
Deployment
Interesting point about deploying the files. The ai didnt update the .gitignore
files so with every deployment the high scores on the leaderboard where being overwritten. I needed to tell the AI specifically not overwrite the highscore file when deploying.
Conclusion
It helps to know the concepts of coding applications, but you dont need to write any code to create full applications with roo-code. This style of Ai driven coding relies on persistance, research and credits.
Doing prior research into prompts can save you a tonne of money when trying to get roo-code and Anthropic to produce the game you want. if you go into it blindly it could end up costing a lot of money to produce your app.