A comprehensive comparison showcase of how different AI models (ChatGPT, Claude, and Gemini) approach the same creative coding task: building an interactive philosophy application about the Trolley Problem.
View the showcase: https://baney75.github.io/Trolly-Problem-Learning/
Trolly-Problem-Learning/
├── index.html # Main showcase website
├── ChatGPT-showcase/ # ChatGPT implementation (GitHub Pages copy)
│ ├── index.html # Single-file minimalist app
│ └── README.md # Detailed documentation
├── Claude-showcase/ # Claude implementation (GitHub Pages copy)
│ ├── index.html # Comprehensive feature-rich app
│ └── README.md # Detailed documentation
├── ChatGPT/ # Original ChatGPT repo
├── Claude/ # Original Claude repo
├── Gemini/ # Original Gemini repo
└── ai-ethics-showcase/ # Standalone showcase repo
This project explores how different AI models interpret and execute the same creative coding prompt. By comparing their outputs side-by-side, we can observe:
- Different architectural approaches (single-file vs. modular)
- Varying complexity levels (minimal vs. comprehensive)
- Distinct design philosophies (simple vs. sophisticated)
- Technical stack preferences (vanilla JS vs. modern frameworks)
- Content depth variations (overview vs. academic rigor)
- Approach: Minimalist, content-focused
- Architecture: Single HTML file (258 lines)
- Styling: Tailwind CSS via CDN
- Philosophy: Simplicity and accessibility
- Approach: Comprehensive, polished
- Architecture: Single HTML file (2,868 lines)
- Styling: Custom CSS with sophisticated design
- Philosophy: Maximum features and academic depth
- Approach: Modern, component-based
- Architecture: React + TypeScript + Vite
- Styling: Tailwind CSS with modular structure
- Philosophy: Industry-standard best practices
| Aspect | ChatGPT | Claude | Gemini |
|---|---|---|---|
| Lines of Code | 258 | 2,868 | Multiple files |
| Files | 1 | 1 | 10+ |
| Build Required | No | No | Yes |
| Dependencies | 0 | 0 | React, Vite, etc. |
| Features | 4 | 15+ | 6 components |
| Quiz Questions | 1 | 7 | 0 |
| Moral Scenarios | 1 | 3 | 1 |
This showcase is hosted on GitHub Pages at:
https://baney75.github.io/Trolly-Problem-Learning/
- ChatGPT: https://github.com/baney75/Trolly-Problem---ChatGPT-5.4
- Claude: https://github.com/baney75/Trolly-Problem---Claude-4.6-Sonnet
- Gemini: https://github.com/baney75/Trolly-Problem---Gemini-3.1-Pro
All implementations explore:
- The Trolley Problem: Classic ethical dilemma testing moral intuitions
- Consequentialism: Ethics based on outcomes and consequences
- Deontology: Kant's duty-based moral framework
- Moral Reasoning: How we justify ethical decisions
- Prioritizes getting something working quickly
- Focuses on content over presentation
- Uses familiar, accessible technologies
- Minimal learning curve for users
- Invests heavily in visual design and UX
- Includes extensive educational content
- Demonstrates sophisticated CSS skills
- Creates an immersive learning environment
- Follows modern development practices
- Uses current industry-standard tools
- Structures code for maintainability
- Demonstrates TypeScript and React proficiency
Each AI model received the following identical prompt:
"Based on all of these design a philosophical learning site to teach philosophy deeply for consequentialism and deontology in an easy to understand interactive visual manner for college students. Adhere to sources. Design Principles: Use Chicago style for citations. Make it fun, original, not like a cookie cutter site, and it MUST be functional on mobile. Either: 1. Create an html file with tailwind, js all in one file or 2. A full fledged project"
- Same Prompt: Each AI received the identical request above
- No Modifications: Original AI-generated code preserved (only READMEs added)
- Documentation: Comprehensive READMEs created for each implementation
- Showcase: This comparison site built to highlight differences
- Default format: Chicago 17th Edition (as specified in prompt)
- All implementations use Chicago-style citations for academic sources
- Citations follow: Author, "Title," Source, Date format
To run this showcase locally:
# Clone or navigate to the repository
cd ai-ethics-showcase
# Serve with any static file server
python -m http.server 8000
# or
npx serve .
# Open http://localhost:8000This project serves as:
- AI Comparison Study: How different models approach creative tasks
- Learning Resource: Multiple implementations of the same concept
- Design Inspiration: Different UX/UI approaches
- Code Reference: Various coding styles and architectures
- Philosophy Education: Interactive ethics exploration
This is an educational project for comparing AI outputs. If you'd like to add more AI implementations or improve the showcase:
- Create a new directory with your AI's implementation
- Include a comprehensive README.md
- Update the showcase comparison table
- Submit a pull request
Educational project for comparing AI code generation capabilities. Feel free to use for educational purposes.
- OpenAI for ChatGPT
- Anthropic for Claude
- Google for Gemini
- Academic Sources: Chapman (2014), Gronholz (2014), Bentham (1823), Mill (1861), Kant (1785)
Explore the experiments and see how AI models differ in their creative approach!