AI Solutions
AI-Powered Mafia Game
Frontend development + game engine design
A browser-based Mafia party game where AI controls non-player characters during night and day phases. Players are assigned roles and interact through an animated game UI with phase announcements and end-game dialogs.
AI NPCs
Strategic decision-making
Role System
4 unique roles + abilities
Phase Engine
Night/day cycle management
// Game flow
Role Assignment
Distribute roles
Night Phase
AI + special actions
Day Phase
Discussion round
Voting
Player elimination vote
Elimination
Role reveal + removal
End Game
Win condition check
Night → Day → Vote → Repeat
// What we built
- AI game engine — Non-player characters powered by AI with strategic decision-making per role
- Role system — Mafia, Doctor, Detective, and Citizen roles with unique abilities and win conditions
- Phase management — Night/day cycle engine with announcements, voting, and elimination flow
- Animated UI — Visual game interface with transitions, dialogs, and end-game summaries
// Stack
ReactAIGame LogicVite
