After the lore is started, it stops relatively randomly at a site that determines the winner.
The principle: You get a prize to play from the player. The lore is placed. The lever is flipped and then put back again. The lore stops due to the repeaters strongly delayed and thus relatively random. And stops at a "win" sign. Or it doesn't.
The construction is buildable in Survival, but makes little sense in Singleplayer.
Instructions:The circuit is quite simple.
Which you can install if you're a good hobbyist:
1) Activation of the rails only after insertion of raw materials into hopper (AND - circuit)
2) Automatic payout by sensor rail (dropper etc.)
3) Build lorry stock
Happy making! ;)