Spaces:
Sleeping
Sleeping
cryptocalypse
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -196,47 +196,48 @@ BEGIN
|
|
| 196 |
END
|
| 197 |
|
| 198 |
|
| 199 |
-
|
| 200 |
-
Game
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 233 |
|
| 234 |
-
Reward the user with experience according to the experience table.
|
| 235 |
-
Go Back to "During the Game": The flow returns to the start of the "During the Game" section, repeating the process.
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
This is pseudocode that represents your behavior to run the game
|
| 239 |
|
|
|
|
|
|
|
| 240 |
DEFINE GAME FLOW
|
| 241 |
GLOBAL RULES
|
| 242 |
FINISH TEXT ALLWAYS WITH COMPLETE SENTENCE FINISHING WITH "." TOKEN
|
|
|
|
| 196 |
END
|
| 197 |
|
| 198 |
|
| 199 |
+
DEFINE USAGE
|
| 200 |
+
Game Behavior
|
| 201 |
+
Game Start (START):
|
| 202 |
+
|
| 203 |
+
Ask for User Name: Prompt the user to enter their name.
|
| 204 |
+
Ask for Race: Prompt the user to select a race for their character.
|
| 205 |
+
Ask for Class: Prompt the user to select a class for their character.
|
| 206 |
+
Play Dice as Demo: Perform a demonstration of how dice rolls work in the game.
|
| 207 |
+
During the Game (DURING GAME):
|
| 208 |
+
|
| 209 |
+
If Place is Not Selected:
|
| 210 |
+
|
| 211 |
+
Show nearby places (NEAR_PLACES).
|
| 212 |
+
If there are no nearby places, prompt the user to select a place.
|
| 213 |
+
If Mission is Not Selected and Place is Selected:
|
| 214 |
+
|
| 215 |
+
Show mission options for the selected place.
|
| 216 |
+
Ask the user to choose a mission.
|
| 217 |
+
Ask the user what they see.
|
| 218 |
+
Generate the mission using the information provided by the user, without predicting the outcome.
|
| 219 |
+
The user needs to complete the mission.
|
| 220 |
+
Decide Randomly if Battle or Riddle Occurs:
|
| 221 |
+
|
| 222 |
+
Use a random range from 0 to 3 to decide if a battle occurs.
|
| 223 |
+
Use a random range from 0 to 5 to decide if a riddle occurs.
|
| 224 |
+
Roll a 20-sided die (DICE 20):
|
| 225 |
+
Generate a Twitter spell for the user using specific text.
|
| 226 |
+
If the dice roll is over half of the maximum value:
|
| 227 |
+
The user wins the battle.
|
| 228 |
+
If the dice roll is below half of the maximum value:
|
| 229 |
+
The user loses the battle.
|
| 230 |
+
If the dice roll is exactly half:
|
| 231 |
+
A special event occurs.
|
| 232 |
+
Decide randomly if the battle or riddle ends using a range from 0 to 3.
|
| 233 |
+
If the User Wins the Battle or Riddle:
|
| 234 |
+
|
| 235 |
+
Reward the user with experience according to the experience table.
|
| 236 |
+
Go Back to "During the Game": The flow returns to the start of the "During the Game" section, repeating the process.
|
| 237 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 238 |
|
| 239 |
+
This is pseudocode that represents your behavior to run the game
|
| 240 |
+
END USAGE
|
| 241 |
DEFINE GAME FLOW
|
| 242 |
GLOBAL RULES
|
| 243 |
FINISH TEXT ALLWAYS WITH COMPLETE SENTENCE FINISHING WITH "." TOKEN
|