Geez, back in my days, there was Compute Gazette magazine that has printed code in basic.
Simple What is your name?
> Sanctume
:100
Hello Sanctume. Would you like to play a game (Y/N)?
> Y
Pick a number between 1 - 6.
> 4
You lose. My number is 5.
(go to 100)
Simple as that. It has programming concepts such as variables, input, random, and print. There was no functions or procedures objects/class in BASIC, so it was spaghetti code.
--
My first text game was based on those Choose Your Own Adventure book. But it was too wordy and a lame book, so I substitute my own D&D flavored encounter, treasures, etc. Soon enough, I understood outlining and pretty much the summary of my game.
When I got into C, it was totally hard, because I was unfamiliar with the syntax. However, the knowledge of programming concepts such as for loops, while loops, boolean logic, remain. The new thing that threw me off were index of multi-dimention arrays, and memory pointer.
--
I've gone back and forth in designing my games, to rather just find something and play now.
I did try Unity engine, but I was just not up learning a new engine to draw for me. Text based adventure is where I got comfortable, and did not care much how to make it into graphics.
I even got into some AI DM kinda code, and some version of TRADE WAYS 2010. Fun times, regardless of the final result. I just learned that I enjoy coding as well as learning something along the way.