State in, state out
The whole game is a single value : coin, reputation, hype, safety, stock, staff, permits, prices, the current night (guests, crowd energy, market) and the random seed. Time inside a night is counted in minutes . One minute of play is
The noise is not external. It comes from a seeded deterministic pseudo-random generator whose seed is stored inside and advanced into , so a night replays exactly. In practice
is a deterministic function of the state and the actions. The same seed and the same actions give the same night, bit for bit.
Random decisions
Every random decision in the game is built from a uniform draw :Day, night, report
A game day has three phases. The player plans by day, watches the club run by night, and reads the result in the report. The night opens at 22:00 and runs 360 one-minute ticks, so minute is clock time 22:00 + and the club closes at 04:00. A headless night is literallystartNight: building tonight
startNight runs once when the player opens the club. It draws everything that is decided in advance:
- Tonight’s guests. The expected head count, each guest’s segment, genre, budget, arrival and leave minute (see Guests & spending).
- Promoter guest lists, which arrive early and skip the cover.
- Happy-hour reshuffles of arrival or leave times, if a scheduled happy hour is set.
- The inspection roll. With probability an inspector is scheduled at a uniform minute in (see Crowd, DJ & security).
- Fresh night state: crowd energy starts at 30, market multipliers at 1, DJ multiplier at the no-DJ value 0.5, and tonight’s table bookings are fixed.
tickNight: one minute
Each tick runs the same steps in the same order. The order matters: a guest admitted at the door this minute already counts toward the crowd check, the escorts and the energy update of that same minute.
Guests drawn at
startNight are sorted by arrival minute and processed in that order, so when the bar is busy the earliest arrivals are served first. Guests pulled in by a promo posted during the night are appended after them, so they are processed last whatever their arrival minute.
endNight: the books close
At 04:00 (or at a shutdown)endNight settles the night in a fixed order:
- Entertainment tax on the night’s revenue: , with rate = 0, 0, 0.2, 0.3, 0.4 for levels 1–5.
- Shutdown penalty, if the crowd-permit check closed the club.
- Reputation from the average guest satisfaction.
- Night report, then the defeat check and the victory check.
nextDay: overnight
nextDay turns the report into a fresh day :
where is the head count of staff role , its daily wage (300, 400, 600, 700, 1500), the venue’s rent (100 to 30000), hype and Safety the safety stat. CEO energy resets to 5, stock orders that are due are delivered, and tonight’s DJ, band, promos and promoters are cleared.
Guests & spending
Who comes, what they pay at the door, and when they buy.
Crowd, DJ & security
Energy, the DJ multiplier, fights, inspections and the 0–100 stats.
