Jaymes Morris
@SagaciousPan
Programming is just my hobby.
Is there a way to clear the console of a repl using JavaScript?
console.clear(); does not work.
https://repl.it/@SagaciousPan/Text-Adventure-Version-
Vandesm14 Can you post your repl link? console.clear() should work, so it might be a code issue.3 years ago
Is there a better way to do this?
It works... but... I feel like I'm repeating code waaaaay to often.
https://repl.it/@SagaciousPan/Text-Adventure-Ver
mwilki7 You can reduce the
text = "If I could find a way to not repeat so much code.";
mainController.typeToConsole(text);
To
mainController.typeToConsole("If I could find a way to not repeat so much code.");
`3 years ago
theangryepicbanana You don't need var every single time you give text a value. Another thing you could do is to use an array containing each text and iterate over it using a for ... of loop3 years ago
A simple text adventure game.
[SLOW SPORADIC UPDATES]
V.5 notes:
Reworked (once again)
Added some scenes (koamojis)
Changed the story
Python
I have been importing and using replit to clear my console, but I found out that you can't import replit when you have multiple files.
Traceback (mos
ash15khng There is no other way but you could do something like printing "\n" many times:
print("\n"*50)4 years ago
A simple text adventure game.
[SLOW SPORADIC UPDATES]
V.2 notes:
-No longer using python 2.7
-Comments added
Python
DJWang Wow amazing game! Try to fix your spelling and update it frequently. Very impressive!3 years ago