3 ms·
So, the RPC-4000 version of blackjack seems lost, but the LGP-30 version exists (and can be run on simh). I've disassembled and partly annotated it, and found t
by kps 4y ago
So, the RPC-4000 version of blackjack seems lost, but the LGP-30 version exists (and can be run on simh). I've disassembled and partly annotated it, and found that it too has a sort of cheat switch.
The LGP-30 has no source of randomness to use as a seed. From loading the program, if the player plays optimally, the games will all be the same. Over the first few dozen games, the player ends up in the hole (IIRC, noticeably more than the long-run house edge).
The LGP-30 has one conditional branch instruction, that tests the sign bit of the accumulator. But if the sign bit on the instruction is set, and the TRANSFER CONTROL switch on the front panel is set, then the branch is always taken. This appears once in the program. On startup, if the switch is set, it marks two of the aces as already dealt. This perturbs the sequence enough so that, over the first few dozen games, the player has the advantage.
- kps 4y agoToo late to edit, but I misremembered a little: from an earlier comment that I'd forgotten I'd made¹, the program image on paper tape had the aces marked dealt, and the TRANSFER CONTROL test switch merely skipped the part of initialization that cleared it. This means that (with sufficient time and dedication) one could in principle prepare multple tapes with different starting configurations, analogous to editing a binary to change a hardcoded seed. ¹ https://news.ycombinator.com/item?id=20489774 https://news.ycombinator.com/item?id=20489774
- deleted 4y ago[deleted]