Share your repls and programming experiences

← Back to all posts
Lennybot
h
sugarfi (151)

This was something I made a while back but did not share. It is a text adventure. You are trapped on a collapsing space ship with the maniacal AI Lennybot. You will bre presented with a series of choices at times. If you make one wrong choice, Lennybot will kill you. Can you survive until the end?

Commentshotnewtop
IsackSan (4)

if u look at the code u can find how to survive lol

Programmer567 (6)

it really isn't hacking, the repl is set to show you the inside code. but i do agree, it shouldn't really be allowed ¯_( ͡° ͜ʖ ͡°)_/¯@sugarfi

sugarfi (151)

@Programmer567 what do you mean? that's basically hacking the NSA! Yeah, I'm kidding. It is kind of cheating, though.

IsackSan (4)

@sugarfi it shows the code so...¯_(ツ)_/¯ not my fault for looking

sugarfi (151)

@IsackSan i know. good job reading my messy code

IsackSan (4)

@sugarfi its not THAT messy....wait...Or is it?¯_(ツ)_/¯ I'm not sure anymore.. Am i messy? are we all messy? this is VERY confusing.... meh whatever

ThunderCoder (2)

Is there a way to survive?

TaylorLiang (634)

@ThunderCoder spam ctrl-c when your about to die

sugarfi (151)

@ThunderCoder If you make all the right choices, you will not die. Each question has one choice that will not lead to your death.

druceb (14)

Would be nice if when you died you didnt have to go through the start sequence

sugarfi (151)

@druceb what would it do otherwise? do you mean it would just take you back to the last choice or something?

ThunderCoder (2)

@sugarfi I think what @druceb meant was that instead of telling us where we are, who is lennybot, and so on. you should just take us back to the first dialog in the game.

rediar (214)

Got killed while watching a movie oof

Thecrowbar1234 (58)

I got sliced while playing robot operation

Thecrowbar1234 (58)

you do noice that its broken, right?

Thecrowbar1234 (58)

It will say no module named replit

sugarfi (151)

@Thecrowbar1234 that is a repl.it bug. All repls that use the replit.clear function are broken now.

Thecrowbar1234 (58)

I have a solution to it.

Thecrowbar1234 (58)

Here is a function that is an alternative to the repl clear:

sugarfi (151)

@Thecrowbar1234 ok. on repl.it you could just use os.system('clear')

Thecrowbar1234 (58)

Welp, Imma bouta hit the sack. See ya!

Thecrowbar1234 (58)

Do you mind if I use your say() function? I would give you credit obviously.

tyolmedo (0)

here's a suggestion, add an option to skip the opening dialogue incase the player has already played and wants to skip it

Thecrowbar1234 (58)

@sugarfi You should do that for the rest of the text too