I took some compuer classes in junior high in the early 80’s. We had our choice of apple II’s, Commodore VIC 20’s, and IBM XT/AT computers. The things that you could do with less than 32k of memory.
I did some machine programming on a VIC-20 with a 16K expansion card by hand. My lodge was having a Casino Night for charity, so I wrote a Roulette Wheel Simulator which generated a faux random number for the results, created a whirling sound of the wheel, displayed the flashing red and black with an occasional green screen as the numbers rapidly showed on the screen, and a routine to slow the screen flash and number flash, indicating the ball bouncing until it would settle on the winning number. When I finished there was ONE BYTE of RAM left. I took it as a personal challenge to use up that one byte. . . but when I succeeded, the program would not run! It turned out that one byte had to be free for the program to run. LOL!
That computerized Roulette Wheel was the hit of the Casino night, bringing in triple the money the real roulette wheel did because of the novelty.