Inspiration

While looking for a project idea for this hackathon, I discovered the Simple ERNIE demo model on Hugging Face and realized it could be used via an API. This inspired me to build a fun, game-based experience where users can directly interact and play with ERNIE instead of just chatting with it.

What it does

Ernie GameHub is an AI-powered web platform with three experiences: -A dynamic Tic Tac Toe game with adaptive AI playstyles -A “Two Truths and One Lie” game designed to trigger confidence traps -Character roleplay chats that maintain personality and context

How we built it

We built a Flask backend and a lightweight HTML/CSS/JS frontend. ERNIE is used for strategic reasoning, misconception generation, and in-character roleplay via API integration. I used the ultra-lightweight Simple ERNIE Bot through the Gradio API (https://huggingface.co/spaces/baidu/simple_ernie_bot_demo ). The model is not designed for performance or production use and serves only as a basic demo for testing purposes. Therefore, its performance may not be perfect, but it is sufficient for demonstrating the game concept and minigame integration.

Challenges we ran into

Ensuring ERNIE outputs stayed within strict rules (valid moves, valid JSON, single answers) required careful prompt design and fallback logic.

Accomplishments that we're proud of

-Designing AI-generated “lies” that feel genuinely believable -Maintaining character consistency without breaking immersion

What we learned

Prompt structure and constraints are critical for reliable AI behavior, especially in interactive and rule-based systems.

Built With

Share this project:

Updates