Pick the shape of Mas Naufal's parking-yard code, then pay its price week after week. 12 levels, played right in the browser with nothing to install.
What the levels ask
Monday, 3 August. Today the Kereta Lokal stops at Halte Jamblang for the first time, and Karang Taruna Ward 09 opens a motorbike yard beside it. Mr. Naufal, its treasurer, writes Titip: a small TypeScript app on the booth laptop that prints the tickets. The neighbourhood head sets the fee at Rp2.000 a day for a motorbike, written on the ticket. Mr. Naufal has just learned design patterns and is tempted to set up a Strategy or a Factory for the kinds of vehicle that might come. Pick the shape of the fee, then run the season.
17 August. Mr. Tono leaves his bicycle: a second kind, Rp1.000 a day, written SEPEDA on the ticket. The week after, Mr. Bayu asks for his motorbike to stay the night, Rp3.000 more a night for any kind. Mr. Naufal can turn the kinds into a handler lookup or a class per kind now, at the next request, or wait and add one more if. Pick the shape and when to move.
31 August. Four places in Titip know the kinds, each with its own if: the fee, the ticket label, the lane on the board and the neighbourhood head’s night report. Three weeks running a new kind comes: Mr. Harun’s car, Mr. Piksel’s electric motorbike, Bagas’s electric bicycle. Each request names its fee and lane; the ticket and the report are not mentioned. The Karang Taruna wants the fourth and fifth kinds to touch one source file. Pick the shape of the kinds and when to move.
21 September, and the rainy season has started. What a rider leaves at the booth goes on a deposit slip: helmets, a car key, a note. The slip is a class with a long constructor, new TandaTitip(plat, jenis, helm, kunci, catatan), made by three buttons at the gate. Ms. Wulan leaves her raincoat, then Mrs. Sari leaves shopping that can be more than one thing. Pick how the slip is made.
5 October. On Saturdays Rara helps at the booth, and a slip is no longer made in one go: the plate and helmets at the gate in the morning (the morning slip is printed and kept for the night book), things left at noon, the slip for pickup in the afternoon. The week after, the neighbourhood head makes a rule: keys are kept for cars only, and a slip that keeps a motorbike key must not be printed. Pick the shape of a slip filled in stages.
19 October. The lanes are a Lajur whose in, move and out buttons write straight into the yard. Out also takes the money into the neighbourhood head’s Kas. Rara taps out for Mr. Tono’s motorbike while it still stands in A1, and asks for an undo button. A week later the neighbourhood head wants every step of the day in the night book, without the undone ones. Pick how an undo works.
2 November. Mr. Naufal is still delighted with his commands. Then two discounts arrive: teachers pay half, then students get 30% off, with Rp1.000 as the least anyone pays after any discount. Pick the shape of the discounts.
16 November. What stays at the booth is data from the booth’s book: a tagged union of motorbikes, bicycles and cars. One report already reads it, the day’s takings, with a switch and default: return 0. The neighbourhood head asks for a helmet count, Mr. Wiryo, on night watch duty, asks for a check list, and then Mr. Kasman’s pedicab may stay the night. Pick the shape of the reports, and for a switch, what its default holds.
7 December. Monthly members get a WhatsApp from the booth’s gateway phone. Langganan builds its own KlienWA inside, so what it sends has never been tested. Ms. Wulan asks for a reminder three days before a pass runs out, tested first this time. The week after, Mr. Tono, who has no WhatsApp, asks for it by SMS. Pick where Langganan gets its sending clients from.
21 December. The board at the gate is written by one function that counts the free slots and writes the HTML in the same loop. Dina asks for nearly-full lanes in red and full ones marked PENUH. The neighbourhood head wants the free slots sent every morning to the ward’s WhatsApp group. Then lane A’s roof is repaired, and it now holds 36. Pick the shape of the board.
11 January. Before Mr. Naufal, Titip was started by Mr. Ardian, who set up two patterns for changes he expected: a Strategy registry of payment methods holding only cash, and a factory of booth notifications holding only the screen. Dina asks to pay by QRIS, then the neighbourhood head wants the way someone paid at the front of the receipt. Pick what happens to each pattern.
25 January, the Karang Taruna’s closing meeting. The neighbourhood head reads the season’s book back: six requests that reached three parts of Titip, the kinds, the deposit slip and the night reports, each part as it stood before its first request. Mr. Naufal picks a shape for each part, and the six weeks are played again on the whole app. Pick the shape of all three parts.