An AI-powered interactive storytelling game with triple dice mechanics, character customization, and dynamic narrative progression.
- AI-driven narrative that adapts to player choices
- Triple dice system with special events for matching dice
- Stage-based gameplay with goals and progression
- Character customization affecting gameplay outcomes
- Multiple scenario templates (idol competition, white house advisor, etc.)
- Story conclusion system with multiple ending paths
- Frontend: Next.js 15, React 19, TypeScript, Tailwind CSS
- Backend: Supabase for authentication and data storage
- AI: OpenAI API for dynamic storytelling
- Node.js 20+
- npm or yarn
- Supabase account
- OpenAI API key
-
Clone the repository:
git clone https://github.com/yourusername/dd-game.git cd dd-game -
Install dependencies and set up environment:
npm install cp .env.local.example .env.local # Edit with your API keys -
Start development server:
npm run dev -
Open http://localhost:8000 to play
- Three dice (1-6) rolled simultaneously
- Matching dice trigger special events
- Non-matching dice values are summed (3-18)
- Attribute modifiers affect success thresholds
- Multiple game stages with unique goals
- Character attributes influence goal completion
- Stage transitions mark story progression
- Natural completion of final stage
- Extended gameplay endings (30+ turns)
- Player-requested endings via keywords
See the docs directory for detailed information:
- Design Document - Architecture and implementation details
- File Structure - Codebase organization
- Database Setup - Supabase configuration
- Template Structure - Documentation for creating game templates
MIT