Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
6

how to erase only one line

thenullified
thenullified

hi guys. im creating the next installment of the humble story of a teapot.
i want to know if its possible to erase only certain lines like:
teapot:
support = 1
...
[1]make some potcrafts
[2]use the power of 0/0 and cause multiversal instability
[3]summon the genie using the lamp-shaped teapot
user picks 3
shows:
teapot:
support = 1
...
[3]summon the genie using the lamp-shaped teapot
you used the lamp-shaped teapot
genie: ....

and also, if anyone know how to create a backspace effect, help me too
if you can teach me how, ill add you to the game and upvote all the comments you put here.
the repl is a preview of the minigames
thanks to

@SixBeeps
@CodingCactus
@Muffinlavania
for your help!(although i havent really found a satifactory ans yet).
thanks!

2 years ago
You are viewing a single comment. View All
3
1
thenullified
thenullified

that would be troublesome with my code. but ill add a mention to the game anyway.

@CodingCactus

2 years ago
3
CodingCactus
CodingCactus

@starblazer
i'm pretty sure that you can't just delete lines, once they are displayed, they are displayed, maybe there is a package that does it for you?

2 years ago
2
SixBeeps
SixBeeps

@starblazer
@CodingCactus
I'd pair it with an array containing the options that have already been used, and only print each option if they are not in the array.

2 years ago
1
thenullified
thenullified

i have completely no idea how to do [email protected]

2 years ago