run code for adventure

Below is a pseudocode based on the ‘hero’s journey’ narrative, which is a common template in most stories. I think it’s an interesting and abstract interpretation of such a trope and works as a cool contrast and fusion between the logic and rigidity of code and the artistic abstract form of storytelling.

The Hero's Journey
//The most common template in narrative stories, if you want to become a hero in the most basic sense, run this code.

function call to adventure(){
hero(call to adventure);
//hero has a reason to adventure, usually something they care about in danger

if (refusal to call){
hero(does it anyway)
}

//hero may encounter mentor to encourage and train them to adventure despite
wishes

function trials and tribulations(){
hero(faces danger)
hero(struggles but improves)
}

function death and rebirth(){
hero(faces ultimate obstacle)
hero(fails?)
hero(succeeds eventually)
reward(in hero's hands)
}
//aforementioned mentor may die and result in hero becoming more powerful.

function returnal and resurrection(){
hero(returns with reward and newfound knowledge)
ending(happy)
}
//ending may be bittersweet

Leave a Reply

Your email address will not be published. Required fields are marked *