Skip to content

nathantross/wdi_sf_6_lab_2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Choose your own eggy adventure

So, you are about to make breakfast. You have seen Gordon Ramsey's method of making scrambled eggs. Your method works for you sometimes. You've never tried Gordon's, but it seems pretty legit. You can make your own, follow Gordon's recipe, or even call a friend.

Gordon Ramsey's Scrambled Eggs

Instructions

Using story.txt as the file containing the story, implement a choose-your-own-adventure style game.

In story.txt:

  • ~p1, ~p2, ~p3, and ~p4 denote the pages of the story book.

  • ~p1:c1:p2, ~p1:c2:p3, ~p1:c3:p4 denote the following format:

~origin-page:choice-id:destination-page

The game should:

  • Prompt the user to make one of the 3 choices in the file
  • Output the end result of picking a specific choice
  • Prompt the user to restart the game after the destination is reached
  • Output the story to a text file

As bonuses

  • Add more pages and actions so there's more depth
  • Allow undoing an action
  • Display the path through the story when you reach an end page

Super bonus

  • Output the precise position in the story to a text file and restore state from that file when re-loading the game

About

A very simple choose your own adventure game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages