A satirical web-based decision game about the complex trade-offs in developing AGI.
ai-2027-game/
├── index.html # Main game entry point
├── src/
│ ├── css/ # Modular stylesheets
│ │ ├── reset.css
│ │ ├── main.css
│ │ ├── cards.css
│ │ ├── resources.css
│ │ ├── animations.css
│ │ └── responsive.css
│ ├── js/ # JavaScript modules
│ │ ├── config.js # Game configuration
│ │ ├── state.js # State management
│ │ ├── resources.js # Resource system
│ │ ├── cards.js # Card mechanics
│ │ ├── ui.js # UI management
│ │ ├── game.js # Game logic
│ │ └── main.js # Entry point
│ └── data/ # Game content (JSON)
│ ├── cards.json # All decision cards
│ └── gameConfig.json # Game settings
├── assets/ # Fonts and images
├── prototype.html # Original prototype
└── PRD.md # Product requirements
- Clone the repository
- Run the local server:
./serve.sh
- Open http://localhost:8080 in your browser
- Mobile-first design with desktop scaling
- Sophisticated drag physics with rubber band effects
- 4 input + 4 output resources with feedback loops
- Personal stakes tracking (Net Worth & Legacy)
- Save system using localStorage
- 40+ decision cards across 4 phases
- Multiple endings based on your choices
Edit src/data/cards.json to add new decision cards. Each card has:
id: Unique identifiertitle: Card headlinedescription: Decision contextleftChoice/rightChoice: Button labelsleftEffects/rightEffects: Resource changescondition: Optional conditions for card to appearspecial: Special effects (flags, multipliers, endings)
Resource formulas and thresholds are in src/js/config.js.
The game uses modular CSS with CSS variables for easy theming. Main variables are in src/css/main.css.
- Inspired by the AI2027 research paper
- Game design focused on illustrating AGI development trade-offs
- Built with vanilla JavaScript for maximum compatibility