Inspiration
We were inspired by Ace Attorney, a game where players defend clients in dramatic courtroom trials.
As college students, we realized that everyday campus life comes with its own disputes. Whether it's a roommate who never washes the dishes, someone eating your leftovers without permission, or a group member not contributing to a project, these situations can create tension.
Many students avoid confronting these problems because the conversations can be uncomfortable or awkward.
We created Court of AI to make navigating everyday disagreements less intimidating by turning conflict resolution into a fun, interactive courtroom experience.
What it does
Court of AI transforms everyday disagreements into retro-style courtroom trials.
Two players enter their names and describe their sides of a dispute. A pixel-art prosecutor represents Player A, while a defense attorney represents Player B. Characters take the spotlight as the case progresses, creating the atmosphere of a real courtroom.
Our AI judge, AI-9, considers both perspectives and proposes a resolution accompanied by a practical three-step action plan. Rather than automatically splitting the blame, the judge attempts to assign responsibility based on the circumstances described.
Both players can accept or reject the proposed resolution. If either player disagrees, they can appeal the decision, allowing the AI judge to reconsider the case and generate a revised ruling. Once both players agree, the game presents an official court order.
To make the experience more engaging, we added animated character expressions, typewriter-style dialogue, background music, achievements, and unlockable courtroom themes.
Our goal is not to replace human communication, but to help students approach difficult conversations with a fresh perspective and actionable suggestions.
How we built it
- Python and Streamlit:* We developed the application using Python and Streamlit, creating the interactive interface, courtroom visuals, game progression, and user interactions in VS Code.
- Ollama: We integrated a locally running language model to generate case-specific resolutions and action plans.
- AI prompt engineering: We designed prompts to encourage the judge to consider both perspectives, avoid unsupported assumptions, and propose realistic solutions. We also implemented a second review pass to improve the quality of generated rulings.
- Git and GitHub: We used version control to collaborate, integrate features, and manage changes throughout development.
Challenges we ran into
Environment setup: Getting Streamlit and Ollama installed, configured, and running correctly across our development environments required troubleshooting.
Visual design: Creating the retro courtroom experience was more challenging than expected. We spent considerable time adjusting the layout, character animations, and visual details to make everything work together.
AI reliability: One of our biggest challenges was getting the AI to generate fair, practical responses. Early versions occasionally suggested unrealistic solutions, so we refined our prompts and added a review process to improve the rulings.
Git collaboration: We encountered merge conflicts, version inconsistencies, and situations where changes weren't appearing correctly on both computers. Resolving these issues taught us how to collaborate more effectively using Git.
Accomplishments that we're proud of
We're especially proud of developing an AI judge that can propose case-specific resolutions and structured three-step action plans.
We also built an appeal system that allows players to challenge a ruling rather than simply accepting the AI's first response.
Another major accomplishment was bringing the courtroom to life. Seeing the animated characters, changing facial expressions, juror reactions, music, and visual effects come together made the project feel like a complete experience rather than a basic chatbot.
What we learned
We learned that software development isn't always a straightforward process. Sometimes progress means revisiting earlier decisions, fixing unexpected problems, and rebuilding parts of a feature to make the overall product better.
We gained hands-on experience with prompt engineering, local AI integration, Streamlit, debugging, and collaborative development with Git.
Most importantly, we learned how to turn a creative idea into a functional prototype under the time constraints of a hackathon.
What's next for Court of AI
Our next step is to improve the mediation process by allowing the AI judge to ask each player follow-up questions before issuing a ruling.
This would help clarify missing information, reduce misunderstandings, and produce more personalized three-step action plans.
In the future, we'd also like to expand the variety of campus disputes the game can handle and continue improving the overall courtroom experience. Challenges we ran into
- Setup: getting streamlit and ollama to run and installed. -app: Took a while for me to get the visuals running and correct them to how I wanted the app to look.
- AI: Making the AI reliable and actually get the responses we wanted
- Git: Sometimes we would run into merge conflicts or when we committed the code backtracked and wouldn't properly load the correct version.
Accomplishments that we're proud of -getting the AI to respond accordingly. With the fair rulings, the 3-step action plan. -The appeal system where the AI can go back and forth so it's not just one answer -Seeing all the small details like the bobbing, the moods of the characters.
What we learned That not everything is uphill and that sometimes you need to go backwards in order to go forwards. Also learning about prompt design and how git works.
What's next for Court of AI
- Asking each player follow up questions so it can provide more accurate and better 3-step action plan
Built With
- claude
- ollama
- python
- vscode