0% found this document useful (0 votes)
16 views

Amo Gus Python Game

This document contains a Python program that simulates a simplified game of Among Us. The program initializes the player's HP at 100 and the impostor's HP at 100. It then enters a game loop where the player can choose to perform tasks or investigate. Performing tasks randomly decreases the impostor's HP or decreases the player's HP. If a crewmate is suspected, attacking has a chance to damage the impostor but also risks damaging the player if the target was not actually the impostor. The program ends by thanking the player for playing the demo version of the Among Us simulator game.

Uploaded by

nnieva
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

Amo Gus Python Game

This document contains a Python program that simulates a simplified game of Among Us. The program initializes the player's HP at 100 and the impostor's HP at 100. It then enters a game loop where the player can choose to perform tasks or investigate. Performing tasks randomly decreases the impostor's HP or decreases the player's HP. If a crewmate is suspected, attacking has a chance to damage the impostor but also risks damaging the player if the target was not actually the impostor. The program ends by thanking the player for playing the demo version of the Among Us simulator game.

Uploaded by

nnieva
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

#function

import---------------------------------------------------------------------------------------------------------------------
import random

#initial variable
declaration--------------------------------------------------------------------------------------------------------
print ("what is your name?")
name = input()
print ("\n")
hp = 100
boss = 100

#game loop
here-----------------------------------------------------------------------------------------------------------------------
print ("do you want to see the tutorial? y/n \n")
tutorial = input()
if tutorial == 'y':
print ("type the action you want to perform, the available actions are usually incased in
this: '<>' example <test>. Just type that and it will do something. \n")
print (" \n")

while boss > 0:


print (name,"\n HP: ", hp)
print ("Impostor: ", boss)
print ("what do you want to do? <task> <investigate> \n")
action = input()
print ("\n")

if action == 'investigate':
print("This feature doesn't exist yet")

if action == 'task':
event = random.randint(1,3)
match event:
case 1:
print ("The impostor saw you and you got attacked!! *you took 5
hp of damage -press enter to continue")
hp = hp - 5
next = input()

case 2:
print ("You successfully completed a task! *the impostor took 5 hp
of damage -press enter to continue")
boss = boss - 5
next = input()

case 3:
print ("You saw someone who you think is the impostor, what do
you do? <attack><ignore>")
move = input()
sus = random.randint(1,2)

match sus:
case 1:
if move == 'attack':
print ("Success! It was the impostor!
*impostor took 5 hp of damage -press enter to continue")
boss = boss - 5
next = input()

case 2:
if move == 'attack':
print ("Failed. It wasn't the impostor and the
crew punished you *you took 5 hp of damage -press enter to continue")
hp = hp - 5
next = input()

print ("Thanks for playing amogus python v0.01, i will update this game soon -∅NV")

You might also like