Was it "BASIC COMPUTER GAMES" from Creative Computing? I loved that book! (Probably not, from your description, but it was very big and very yellow and had a lot of games you could type in.)
https://www.goodreads.com/en/book/show/624341.Basic_Computer...
https://ia902805.us.archive.org/1/items/basic-computer-games...