Game: Save The Princess

Objective: Understand and apply basic command-line commands to perform everyday tasks.

1. Setup The Game World

a: Open your terminal in Desktop, and create a main directory to represent the game world 'SaveThe Princess', then navigate into it

b: Create 3 subdirectories to represent the lcoations in the game 'Sea, Forest, Castle'

2. Structure The Game Enviroment

a: Create file in each location to represent the event in that location - Shark.txt in Sea - Lion.txt in Forest - Knight.txt in Castle - Princess.txt in Castle

b: Add description to each event, to give the user a clue or information about the enviroment - In Shark: You win 100hp or lose 40hp - In Lion: You win 90hp or lose 30hp - In Knight: You win 200hp or lose 65hp - In Princess: Thanks <3

3. Gameplay Mecanics

a: Create player.txt in the game world with 100hp as a strat, make sure to add the hp inside player document

b: The player needs to cross all location in order to reach to the princess and save her - Move the player to Sea location - list the events in Sea and fight them by flipping a coin 'heads = wins, tail = lose' - After filipping the coin, read the event description to update the player hp, if the player's hp is less than zero, delete the player file and start new game

c: Repeat the steps above in Forest with Lion, and in Castl with Knight

d: Read the Princess message and delete the player document

4. Secret Message

a: We are going to implement the same game as a web-application later in the course with help of -HTML -CSS -JavaScript

b: Stay around and enjoy the Journey :)

End of Save The Princess