pflack1 / pflack1.github.io

0 stars 0 forks source link

Guessing Game 1-5 #1

Open pflack1 opened 7 hours ago

pflack1 commented 7 hours ago

Guessing.md

pflack1 commented 7 hours ago
graph TD;
A(Welcome to my game) --> B[Random Number Generate];
B --> C{Enter a number 1-5};
C --> D(User Guess); 
D --> |Correct Guess| E[Correct!];
D --> |Guess To Low| F{To Low Try Again};
D --> |Guess To High| G(To High Try Again);
E --> H{Done};
F --> D;
G --> D;
pflack1 commented 7 hours ago

Guessing Game Code.txt This is the game code

pflack1 commented 6 hours ago

To start there would be a spot to insert the guess where it should prompt to enter 1-5. The number would have already been generated as well so once the guess is submitted then it will let them know 1 of 3 things: that it is correct, it is to low, or it is to high. From there if it is correct then it will output correct and then end. If the guess is one of the other options then it will go back and allow for a retry until it is correct and then end.