Back in the 1990s, when I was using a BBC Micro, I had a couple of books with printed code (some kind of BASIC variant, I think) that could be typed in to produce games.
A lot of the time they didn’t fully work, but I distinctly remember a skiing game that I mostly got working. I could ski and dodge obstacles for a short time before it crashed, anyway.
Of course, it used to take so long to type the code in that I probably made mistakes through impatience and by not paying attention.
These kind of programs would also show up in computing magazines.
Some favorite BBC Micro games that I didn’t have to type in were “Repton” and “Ghouls”. These games were loaded from a cassette.