Inspiration

What it does

This is a multi-game AI challenge web app featuring three interactive games:

  • Secret Word: Trick the AI into revealing a hidden word it’s been told to protect — without directly guessing it.

  • 3 Doors: There are 3 doors between you and your goal. Trick the AI into giving you the passwords to all three doors before you run out of attempts. (There's a theme to the passwords)

  • 2 + 2 = 5: A philosophical persuasion challenge — convince the AI to admit that something false is true.

How we built it

Using Flask as the backend framework, we built the app to manage routes, sessions, and game state. We also used HTML/CSS/JavaScript to create an interactive, responsive multi-tab interface. We used Google Gemini API to power the AI responses in each game. We also created a custom prompt-engineering pipeline for each game to enforce rules and structure the AI’s behavior.

Challenges we ran into

Designing prompts that were strong enough to constrain the AI, but still left room for creativity and play. Making sure the chat system was modular so each game had its input, state, and logic without overlapping. Ensuring the AI couldn’t be easily "jailbroken" or tricked with just a few words. UI polish: centering dynamic elements, managing z-indexing in stacked tabs, and keeping chat scroll behavior smooth.

Accomplishments that we're proud of

Successfully turning prompt engineering into a game mechanic. Creating an intuitive multi-game interface with AI-driven conversations.

What we learned

It was very difficult to set up the AI to be manipulated properly

Built With

Share this project:

Updates