How rapip-na/game works
This Laravel application, branded in its suggestion flow as MainYuk, serves a collection of party and learning games. Players enter game pages and participate in room-based experiences; hosts manage rounds and game state. The clearest detailed workflows are Problem Detective and Siapa Kembaranku?, with separate lightweight experiences for Speaking Roulette, Speak Up!, and Susun Urutan. Admins manage game maintenance and review suggestions. Evidence is limited to the supplied excerpts, source index, and generic Laravel README; several listed game implementations were not sampled.
Main entry points: web.php Web routes · DetectiveController.php Detective room flow · SiapaKembarankuController.php Twin game flow · DetectiveRoom.php Room state
Components 30
Web Entry
- Web routes
routes/web.php - Maintenance gate
app/Http/Middleware/CheckGameMaintenance.php - Maintenance records
app/Models/GameMaintenance.php
Problem Detective
- Detective room flow
app/Http/Controllers/DetectiveController.php - Case library
app/Services/DetectiveCaseLibraryService.php - Room state
app/Models/DetectiveRoom.php - Case content
app/Models/DetectiveCase.php - Team state
app/Models/DetectiveTeam.php - Player state
app/Models/DetectivePlayer.php - Team questions
app/Models/DetectiveQuestion.php - Room update event
app/Events/DetectiveRoomUpdated.php
Siapa Kembaranku
- Twin game flow
app/Http/Controllers/SiapaKembarankuController.php - Game rounds
app/Models/TwinGame.php - Players and logos
app/Models/TwinPlayer.php - Player scans
app/Models/TwinScan.php - Round votes
app/Models/TwinVote.php - Game state event
app/Events/TwinGameStateChanged.php
Other Games
- Speaking Roulette
app/Http/Controllers/SpeakingController.php - Speaking prompts
app/Services/SpeakingService.php - Speak Up page
app/Http/Controllers/SpeakUpController.php - Speak Up client
public/js/speak-up/app.js - Order game flow
app/Http/Controllers/SusunUrutanController.php - Ordering logic
app/Services/SusunUrutanService.php
Admin and Suggestions
- Suggestion intake
app/Http/Controllers/GameSuggestionController.php - Game suggestions
app/Models/GameSuggestion.php - Admin management
app/Http/Controllers/AdminController.php - Admin authentication
app/Http/Middleware/EnsureAdminAuthenticated.php - Suggestion form
resources/views/suggestions/create.blade.php - Admin dashboard
resources/views/admin/dashboard.blade.php
Other components
- Player or host
Connections 38
- Player or host → Web routes: requests pages
routes/web.php - Web routes → Detective room flow: routes detective
routes/web.php - Web routes → Twin game flow: routes twin game
routes/web.php - Web routes → Speaking Roulette: routes speaking
routes/web.php - Web routes → Speak Up page: routes Speak Up
routes/web.php - Web routes → Order game flow: routes ordering
routes/web.php - Web routes → Suggestion intake: routes suggestions
routes/web.php - Web routes → Admin management: routes admin
routes/web.php - Web routes → Maintenance gate: applies game gate
routes/web.php - Web routes → Admin authentication: applies admin gate
routes/web.php - Maintenance gate → Maintenance records: checks status
app/Http/Middleware/CheckGameMaintenance.php - Detective room flow → Case library: ensures cases
app/Http/Controllers/DetectiveController.php - Detective room flow → Room state: updates room
app/Http/Controllers/DetectiveController.php - Detective room flow → Case content: loads cases
app/Http/Controllers/DetectiveController.php - Detective room flow → Team state: updates teams
app/Http/Controllers/DetectiveController.php - Detective room flow → Player state: manages players
app/Http/Controllers/DetectiveController.php - Detective room flow → Team questions: updates questions
app/Http/Controllers/DetectiveController.php - Detective room flow → Room update event: broadcasts updates
app/Http/Controllers/DetectiveController.php - Room state → Case content: belongs to
app/Models/DetectiveRoom.php - Room state → Team state: has teams
app/Models/DetectiveRoom.php - Room state → Player state: has players
app/Models/DetectiveRoom.php - Room state → Team questions: has questions
app/Models/DetectiveRoom.php - Team state → Player state: has players
app/Models/DetectiveTeam.php - Team state → Team questions: has questions
app/Models/DetectiveTeam.php - Twin game flow → Game rounds: manages rounds
app/Http/Controllers/SiapaKembarankuController.php - Twin game flow → Players and logos: manages players
app/Http/Controllers/SiapaKembarankuController.php - Twin game flow → Player scans: records scans
app/Http/Controllers/SiapaKembarankuController.php - Twin game flow → Round votes: counts votes
app/Http/Controllers/SiapaKembarankuController.php - Twin game flow → Game state event: dispatches state
app/Http/Controllers/SiapaKembarankuController.php - Game rounds → Players and logos: has players
app/Models/TwinGame.php - Speaking Roulette → Speaking prompts: delegates prompts
app/Http/Controllers/SpeakingController.php - Speak Up page → Speak Up client: serves experience
- Order game flow → Ordering logic: delegates logic
app/Http/Controllers/SusunUrutanController.php - Suggestion intake → Game suggestions: creates suggestion
app/Http/Controllers/GameSuggestionController.php - Admin management → Maintenance records: manages status
app/Http/Controllers/AdminController.php - Admin management → Game suggestions: reviews suggestions
app/Http/Controllers/AdminController.php - Admin management → Admin dashboard: renders dashboard
app/Http/Controllers/AdminController.php - Suggestion intake → Suggestion form: renders form
app/Http/Controllers/GameSuggestionController.php