El Impostor
Futbolero.
The Ultimate Deduction Game
From Paper to Screen
The Moderator Problem
In the classic "Paper and Pencil" version, one player must sacrifice themselves to be the moderator: writing roles, distributing them, and managing the game without participating.
Someone always stays out.
The Digital Solution
The platform takes on the moderator role. It assigns roles randomly and secretly, synchronizes game phases in real-time, and manages voting.
Everyone plays, no one moderates.
Real Time Multiplayer
Instant state synchronization between all connected devices using Firestore.
Automatic Roles
Secure algorithm for secret assignment of the keyword or the Impostor role.
Managed Phases
Fluid transitions controlled by the host, ensuring order in debate and voting.
The Game Ritual
A journey structured in 5 acts to maximize intrigue.
Lobby
Players join the room via a code.
Draw
Secret assignment of roles and keyword.
Declaration
Each player says a related word.
Discussion
Free time to debate suspicions.
Voting
Choosing the suspect and final revelation.
The Technical
Engine
A system designed for minimum latency and state consistency, combining server robustness with client reactivity.
System_Topology.diag
Next.js 15
Server Actions
- > gameLogic()
- > roleAssignment()
- > dataValidation()
Firestore
Real-time State
- /rooms/{roomId}
- > currentPhase
- > players[]
RoomContext
UI Sync (React)
- > useGameState()
- > renderPhaseUI()
- > optimisticUpdates()
Security Rules
> Restricted Read
Players can only read public room information and their own role. Others' roles remain encrypted by database rules until the end.
> Host Authority
Only the room creator has permissions to modify the global state (currentPhase), preventing manipulation by other clients.
Stack Tecnológico