Inspiration
I wanted to build an old time terminal type of game to educate in Prolog and ignite the spark for those old-time languages that build the foundations needed to become a good engineer. The idea was also to mix some technologies to see how the worked together and a great surprise for me is that, they work nicely together!
What it does
The project is a simple game (scape room type) where the user can select the complexity level and forces you to master Prolog syntax if you want to get out of it. It has a cool 80's vibe as if you were inside those huge mainframes back in the day where you need to navigate the memory stack of a company system.
How we built it
I used mostly three specs for it and hooks in order to improve the code verbosity Kiro was producing. Also to keep the documentation aligned and published it in github, using github pages for the docs and reflex cloud for hosting the site.
Challenges we ran into
Kiro tends to make wrong assumptions some times about the code and how to build it, so adding tests and validation steps was key to produce a coherent story flow for the game. I tried to minimize the verbosity of the code but the code optimization hook would not entirely get it right every time. That is way I disabled the automation and invoked it manually.
Accomplishments that we're proud of
Making this technology stack work together is something that would have taken me months, so having a working prototype in days and being able to refine it but pure specs was something amazing I owe to Kiro.
What we learned
That still, writing good specs might be challenging in order to produce maintainable code.
What's next for Prolog Resurrected
Improving the story line, making the interface cleaner and improving the overall user experience. If possible, add a database and login window to store scores and have a leader board to brag about.
Built With
- playwright
- quarto
- reflex
Log in or sign up for Devpost to join the conversation.