A multiplayer AI decision game built on Reddit's Devvit platform where players solve creative scenarios and their responses are scored by AI to determine their path through the game.
Players encounter "doors" (decision scenarios/nodes) and describe their solutions. An AI scores their creativity, logic and entertainment value. Better scores = shorter paths to win!
- Devvit: Reddit's developer platform for immersive games
- React + Vite: Frontend UI and build system
- Go + Fiber: High-performance backend API
- MongoDB: Game sessions and player data
- Neo4j: Door relationships and player paths
- Redis: Caching and session management
- Python: AI service for door generation and scoring
- Tailwind CSS: Styling
- TypeScript: Type safety
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ Frontend │ │ Backend │ │ AI Service │
│ (React) │◄──►│ (Go) │◄──►│ (Python) │
└─────────────────┘ └─────────────────┘ └─────────────────┘
│ │ │
└──────────────┬────────┴───────────────────────┘
│
┌───────▼───────┐
│ Databases │
│ MongoDB + Neo4j + Redis │
└───────────────┘
dumdoors/
├── frontend/ # React frontend application
│ ├── src/ # React source code
│ ├── assets/ # Static assets
│ └── dist/ # Build output
├── backend/ # Go backend service
│ ├── internal/ # Internal Go packages
│ └── main.go # Server entry point
├── ai-service/ # Python AI microservice
├── database/ # Database initialization scripts
├── tools/ # Development tools and scripts
└── devvit.json # Devvit platform configuration
- Node.js 22+
- Go 1.21+
- Python 3.11+
- Docker & Docker Compose (for databases)
-
Clone and setup the project:
git clone https://github.com/nthsneha/DumDoors.git cd DumDoors -
Start the databases:
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d
-
Setup and run the Go backend:
cd backend go mod tidy go run main.go -
Setup and run the frontend:
cd frontend npm install npm run dev -
Setup and run the AI service:
cd ai-service pip install -r requirements.txt python main.py
npm run dev: Start development servernpm run build: Build for productionnpm run check: Type check, lint, and format
go run main.go: Start the Go servergo build: Build the backend binarygo test ./...: Run tests
devvit upload: Upload app to Redditdevvit deploy: Deploy to productiondevvit logs: View application logs
- ✅ Real-time multiplayer via WebSocket
- ✅ AI-driven decision scoring with personality
- ✅ Dynamic path generation (2-20 doors based on performance)
- ✅ Character cards based on decision patterns
- ✅ Themed scenarios (Corporate, Horror, Sci-fi, etc.)
- ✅ Leaderboards and player statistics
- ✅ Reddit Devvit platform integration
Active Development - Core backend infrastructure and Devvit integration complete!
Current state:
- ✅ Go backend with MongoDB, Neo4j, and Redis integration
- ✅ Devvit platform integration
- ✅ Repository structure organized
- 🔄 Frontend migration to new structure
- 🔄 AI service implementation
- 🔄 WebSocket real-time features
This template comes with a pre-configured cursor environment. To get started, download cursor and enable the devvit-mcp when prompted.
This project is actively being developed. Feel free to contribute!
Built with ❤️ by sneha and sai