The interesting podcast "They Create Worlds" recently had an episode on this topic, it's worth a listen: https://tcwpodcast.podbean.com/e/computer-game-basics/
Growing up I had a Commodore 64 and for some reason came into possession of another of David Ahl's books ("More Computer Games" I think it was called). It contained Eliza as one of the listings and it was a program that fascinated me so much I ended up creating a ton of clones, in horribly nested BASIC (though, to be fair, is there any other kind?)