Share your repls and programming experiences

← Back to all posts
Survival Game!!
NeilBhaduri (64)

To start, this is a simple game, but in my opinion, it is quite interactive. I came up with the idea myself, and never copied anyone's code (just to clear things up).

Playing the Game

To play, just type the number corresponding to what you want to do. That's it!

Getting A Higher Score

Making houses give you a higher score. You need to watch out for your food and water, but other than that, aim to gather wood and build houses.

Tips

When playing, try to never reach the 1 thirst and the 1 hunger time. During this time, there is no way to survive.

Next, the look around feature is like a gamble. You might find some wood and food (little bits of it) or you might not find anything. It is just a way to increase two things at one.

Lastly, keep your thirst and hunger above 5. You never know, maybe you start becoming unlucky, and you can't find any water! So be careful, and keep your thirst and hunger above 5.

Leader Board

I decided to make you guys a bit more competitive, so if you send your scores in the comments, then you will be placed on the leader board (which will be placed on this post). Please be honest when sending your score. And no, you don't need to send a screenshot, but if you like, you may.

More

I added a file in the game, so you can have a game history. If you fork the game, you can play, and your scores will be placed in the 'scores.txt' file. For more information, check the READTHIS!!.docs in the files of this game. Other than that, have fun playing!!!

Leader Board

@ChristopherDai: 1023

@dustdude: 979

@SilvermoonCat: 550

@kingdracorexl: 413

@Wilke000: 343

@NeilBhaduri: 292

@Soccer135246: 274

Comments
hotnewtop
ChristopherDai (81)

delete all time.sleep() and this will be perfect

NeilBhaduri (64)

@ChristopherDai What do you mean? I mean, it looks good.

ChristopherDai (81)

Do something like this: @NeilBhaduri
def fasttype(a):
for b in a:
time.sleep(0.005)
sys.stdout.write(b)
sys.stdout.flush()
instead of time.sleep(2)

NeilBhaduri (64)

Oh, ok, thanks for the advice.

ChristopherDai (81)

Maybe not 0.005 but you get the idea right @NeilBhaduri

NeilBhaduri (64)

Yea, 0.08 is my preference.

ChristopherDai (81)

good enough since this is in Python, but you can still add some type of effect instead of sleep()

Soccer135246 (7)


I survived for more than 4 months! (and I only died because I couldn't find any water for 5 ROUNDS CONSECUTIVELY)

NeilBhaduri (64)

That is really unfortunate @Soccer135246

Soccer135246 (7)

@NeilBhaduri I know! Anyways awesome game I love it

SilvermoonCat (430)

340! check scores.txt :D I had to force myself to die since I had to go...

NeilBhaduri (64)

@SilvermoonCat I'm sure you could have gone farther, but great job!!!

GeoneveStudios (9)

I'm surprised. This is awesome.

GeoneveStudios (9)

??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

NeilBhaduri (64)

nice job @kingdracorex! So far, you have survived the most days in the entire game.

DanielKubik (0)

How is the total score figured out? Like days survived and housed built added or something?

NeilBhaduri (64)

Good question @DanielKubik! The score is caculated by the total days survived + house score + wood + thirst + hunger.

dustdude (6)

i am not a gamer!

so close to 1000!

NeilBhaduri (64)

No way. You survived for nearly a year. Great job!!

dustdude (6)

@NeilBhaduri i should've never forked it! i could've got 2nd place!

dustdude (6)

@NeilBhaduri i got nearly score 1000, and i could've gotten 2nd place but I FORKED IT! so it won't be on the leaderboard :(

NeilBhaduri (64)

@dustdude, it is fine. I edited the code, and the leaderboard is on the post. So you will be on the leaderboard, don't worry.

dustdude (6)

@NeilBhaduri oh... well... ok i guess

NeilBhaduri (64)

@SilvermoonCat nice! you're getting better!

SilvermoonCat (430)

@NeilBhaduri yup. I had to force die though..... :*(

NeilBhaduri (64)

I added some tips in the post for you guys to get better.

Wilke000 (624)

Day one hundred of the zombie apocalypse: