In reply to a tweet by @jesslynnrose:
@jesslynnrose A bit of BASIC on our Apple ][e. There were these Choose Your Own Adventure-style books where the decision points were program listings; you typed the program in and played the resulting mini game or puzzle to get your next page number.