We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bc2e82 commit 9f5cfc1Copy full SHA for 9f5cfc1
1 file changed
general/text-adventure-game/text_adventure.py
@@ -37,8 +37,8 @@
37
38
# Prompt Loop
39
while True:
40
- # Clearing the Console with cls
41
- os.system('cls')
+ # Clearing the Console on all platforms
+ os.system('cls' if os.name == 'nt' else 'clear')
42
# Get the current prompt all its associated data
43
currentPrompt, currentKeys, _, action = storyPrompts[currentKey]
44
# Finish the Adventure when the next keys list contains the string 'end'
0 commit comments