Create a story is as easy as flipping a coin! Each event of your story will have two possible outcomes. Tell your users what the story is about printing the introduction of the game in the console of trinket!
Create a bifurcation in your story using the IF statement for at least two alternatives to your story. The user will have to decide where to go, what story to follow!
Give instructions to the user by indicating the letter in the keyboard that validates the IF statement.
Be aware of the use of IF statements! Each time you add a ramification in your story, you will have to go back to complete alternative passages. The code becomes really messy and you might get lost!
For example, for a story of a detective choosing opening between two doors twice there is a total of six alternative substories!
Time to get the score and the traps in place! Use a counter variable that sums to the final score depending on which part of the story the user ends up visiting. Finally, make the game interesting by setting paths that will lead into the end of the game. Good luck!