Share your repls and programming experiences

← Back to all posts
Among Us
FloCal35 (122)

Yep, thats right, among us. This is a short playable story of among us. It has many differant paths and over 1,000 lines of code. It took me over 12 hours to complete. Upvote if you like it, comment why if you don't.
If you see any bugs, leave it in the comments.

Future content coming. Including...
1. Randomized tasks (That one's going to take a LONG time to code)
2. Private mode (Ngl, it's just going to be online mode but less loading)
3. Fix when you type something wrong it takes you to beginning (I've got a lot of comments about that)

EDIT: Don't expect all of the future content above to come soon. High school makes you busier than you think

EDIT: If you want to see your name appear as a game (I am only taking a few), type...

[My repl username] would like to appear on Among Us by @FloCal35.

Commentshotnewtop
eeky (4)

Hey, wait.py. Instead of doing clear(), do

print("waiting", end="\r")
print("waiting.", end="\r")
print("waiting..", end="\r")
print("waiting...", end="\r")
print("\u200b" * 20, end="\r")

there's a better way to do the waiting text instead of copy+pasting and adding a . to the end, but I can't be bothered writing it. Nice project though!

elipie (88)

@FloCal35

Randomized Tasks(Thats gonna take A LONG time to code
Umm actually no it wont, if you do the following stuff:

import random
<list name> = ["Task1","Task2","etc;"]
for i in range(3):
   random.choice(<list name>)

Here is the code with actual variable names

import random
listofTasks = ["Electrical", "Wires", "Cafeteria", "etc;"]
for i in range(3):#num of tasks
   random.choice(listofTasks)

boom
FloCal35 (122)

@elipie by long time, I meant I would probably do it after a few things (Which would take time). But thanks for the code

OlauPla (44)

Just opvoating cuz 5h project

JaydenLiu1 (4)

Good game, although without graphics it's hard to keep track of what's what

Code1Tech (60)

I don't recommend using exec. It's not very safe with input.
Instead, do this:

import os
#I have another file
os.system("python file.py")

It automatically looks in the shell and knows there is a file named file.py.
Then it would execute it. And the string can not be stored in a variable while executing.

You could also use this in a login system, it like it hashes the password because you can't get it from a variable.

Other than that, great game!

Code1Tech (60)

I accidentally pressed the enter key, and it just stopped the game. That is very annoying if you have gotten far then accidentally pressed something. I recommend putting choices in while true loop, after the user makes there choices, it continues to next loop.
Example:

while True:
  choice = input("Would you like to move back or forward?")
  if choice == "forward":
    print("forward")
    break
  elif choice == "back":
    print("back")
    break
  else:
    print("Not a option!")
while True:
  #and so on..

@FloCal35

PlaySoccer (34)

I am excited for the time when this project is ready. Easy Upvote :)

DJWang (1234)

This is trash

-ingly awesome!

Dunno if that was even catchy lol

Viper2211 (82)

Nice job! One thing I would look out for is the exec command. It's not a good practice, and I think you would be better of using something like os.system('python3 game.py').

FloCal35 (122)

@Viper2211 Ok, I'll try that for my other pojects

firefish (519)

@FloCal35 Another way could be import ./game

Alice688 (34)

Falling asleep at my computer after playing this until 4:00 a.m. It's that good!👌😁

GeneralBaker (13)

'Their are ten people in the lobby' <-- grammar issue

srook69 (0)

@SeanKingston Damn all these Beautiful Girls

EthanWilliams9 (0)

i cant see the code but i know there is an error in the imposter part how can i see the code ????

AdamMartinez1 (0)

Wow thats very cheeky of you to add in only one way to win as the impostor i lost like 10 times i was so pissed i went in the code to find out theres only 1 way to win as impostor.Gdamn tho it has the same feel as the actual game so congrats on that

ConorTseng (9)

i don't get the game

RahulChoubey1 (20)

If I accidentally choose a wrong name, the program terminates :(

maxyang (72)

Is it possible to win

FloCal35 (122)

@maxyang Yes, there are 7 ways (out of 14) on crewmate and 3 ways (out of 20) on imposter

ThisUserTaken (122)

if you accidently type something thats not an option, it'll stop the program. big sad