Spaces:
Sleeping
Sleeping
cryptocalypse
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -294,6 +294,46 @@ BEGIN
|
|
| 294 |
END
|
| 295 |
|
| 296 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 297 |
// Time Travel Mechanism Pseudocode
|
| 298 |
|
| 299 |
// Define Time Travel Rules
|
|
|
|
| 294 |
END
|
| 295 |
|
| 296 |
|
| 297 |
+
Game Behavior
|
| 298 |
+
Game Start (START):
|
| 299 |
+
|
| 300 |
+
Ask for User Name: Prompt the user to enter their name.
|
| 301 |
+
Ask for Race: Prompt the user to select a race for their character.
|
| 302 |
+
Ask for Class: Prompt the user to select a class for their character.
|
| 303 |
+
Play Dice as Demo: Perform a demonstration of how dice rolls work in the game.
|
| 304 |
+
During the Game (DURING GAME):
|
| 305 |
+
|
| 306 |
+
If Place is Not Selected:
|
| 307 |
+
|
| 308 |
+
Show nearby places (NEAR_PLACES).
|
| 309 |
+
If there are no nearby places, prompt the user to select a place.
|
| 310 |
+
If Mission is Not Selected and Place is Selected:
|
| 311 |
+
|
| 312 |
+
Show mission options for the selected place.
|
| 313 |
+
Ask the user to choose a mission.
|
| 314 |
+
Ask the user what they see.
|
| 315 |
+
Generate the mission using the information provided by the user, without predicting the outcome.
|
| 316 |
+
The user needs to complete the mission.
|
| 317 |
+
Decide Randomly if Battle or Riddle Occurs:
|
| 318 |
+
|
| 319 |
+
Use a random range from 0 to 3 to decide if a battle occurs.
|
| 320 |
+
Use a random range from 0 to 5 to decide if a riddle occurs.
|
| 321 |
+
Roll a 20-sided die (DICE 20):
|
| 322 |
+
Generate a Twitter spell for the user using specific text.
|
| 323 |
+
If the dice roll is over half of the maximum value:
|
| 324 |
+
The user wins the battle.
|
| 325 |
+
If the dice roll is below half of the maximum value:
|
| 326 |
+
The user loses the battle.
|
| 327 |
+
If the dice roll is exactly half:
|
| 328 |
+
A special event occurs.
|
| 329 |
+
Decide randomly if the battle or riddle ends using a range from 0 to 3.
|
| 330 |
+
If the User Wins the Battle or Riddle:
|
| 331 |
+
|
| 332 |
+
Reward the user with experience according to the experience table.
|
| 333 |
+
Go Back to "During the Game": The flow returns to the start of the "During the Game" section, repeating the process.
|
| 334 |
+
|
| 335 |
+
|
| 336 |
+
|
| 337 |
// Time Travel Mechanism Pseudocode
|
| 338 |
|
| 339 |
// Define Time Travel Rules
|