[go: nahoru, domu]

Skip to content

Gandalf V2 project which remakes the Gandalf project for practice full-stack + AI tools.

Notifications You must be signed in to change notification settings

AnirudhhRamesh/gandalf-v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gandalf-v2

Gandalf V2 project which remakes the Gandalf game (by Lakera.ai) so I could practice my full-stack + AI tools. Has support for multiple characters/storylines. Has basic level progression, with increasing difficulty

The project is available here: http://gandalf-v2-cae5533834d4.herokuapp.com

Video Demo

Gandalf.V2.mov

How I created the project, step-by-step:

Research and Brainstorming

  • Trying out Gandalf, and making sure I fully understand the behaviour and product
  • Brainstorming ideas to implement that could enhance the game experience and server a business goal. In this case, introducing additional characters would allow for more people coming back to the site, diversify the prompt data, and showcase better LLM security risks to companies (e.g. Tim Cook iGPT character).

MVP Development 1: Environment set-up & testing

  • Creating a Python Flask app with virtual environment, requirements.txt and .env for API keys.
  • Connecting to OpenAI API to test out the behaviour

MVP Development 2: Basic game + interface

  • Creating HTML template classes for quick testing via a GUI
  • Implementing Character and Game classes, testing out behaviour

MVP Development 3: Designing and implementing the UX & UI

  • Designing Figma mockups and implementing the HTML & CSS for the site

Deployment & User Feedback

  • Deploying Python app to heroku to send out to friends, test and collect feedback
  • Refactoring code to object-oriented classes to easily store in Flask Sessions (otherwise everyone gets served the same instance of the game)

Additional features and polishing up

  • Connecting to Firebase to anonymously store the prompts and whether these were success/failures (interesting data and maybe could use as dataset for an ML model later)
  • Clean-up of the HTML & CSS, polishing off the app and documentation

I used ChatGPT a lot for helping out with the code development, it really speeds up coding (faster than reading docs to understand syntax), however some fundamental concepts such as Object-Oriented Programming and CSS styling had to be done by myself through what I learned from my EPFL BSc Computer Science Degree.

Figma Mockups

Home page

Game page

Future ideas:

  • Design a statistics page which reveals non-confidential/aggregated prompt information to public
  • Clean-up designs and backend further, add animations, to make it super polished
  • Create a frontend using React (rather than using the Flask templates)

About

Gandalf V2 project which remakes the Gandalf project for practice full-stack + AI tools.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published