Hacker News new | ask | show | jobs
by mbb70 289 days 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.