4 ms·
I implemented a casino in assembly for college. Started with a Mersenne Twister and added a few pure chance games like roulette and slots. The PRNG was trivial
by mbb70 1y ago
I implemented a casino in assembly for college. Started with a Mersenne Twister and added a few pure chance games like roulette and slots.
The PRNG was trivial. Managing the user's bank balance, switching between games, making the roulette wheel 'spin' by printing a loop of numbers slower and slower was painstaking, error ladden work.
State doesn't just contributing to complexity, it is complexity.