add player class
This commit is contained in:
parent
05f394c221
commit
0f14d2610b
@ -14,8 +14,22 @@ class Drone:
|
|||||||
print(f"Credits: {Drone.money}")
|
print(f"Credits: {Drone.money}")
|
||||||
print("Station: Ass")
|
print("Station: Ass")
|
||||||
|
|
||||||
|
|
||||||
|
class Player:
|
||||||
|
def __init__(self, character, name, turns):
|
||||||
|
self.character = character
|
||||||
|
self.name = name
|
||||||
|
self.turns = turns
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
drone = Drone
|
drone = Drone
|
||||||
drone.money = 0
|
drone.money = 0
|
||||||
|
player = Player
|
||||||
|
player.name = "Jake"
|
||||||
|
player.turns = 1
|
||||||
|
|
||||||
|
|
||||||
def scan_system():
|
def scan_system():
|
||||||
roll = random.randrange(1, maxRoll)
|
roll = random.randrange(1, maxRoll)
|
||||||
print(roll)
|
print(roll)
|
||||||
@ -83,7 +97,7 @@ def mainMenu():
|
|||||||
|
|
||||||
while True:
|
while True:
|
||||||
mainMenu()
|
mainMenu()
|
||||||
repl = input(f"Cedits: {drone.money} >> ")
|
repl = input(f"{player.name} | Cedits: {drone.money} >> ")
|
||||||
|
|
||||||
if repl == "c":
|
if repl == "c":
|
||||||
drone.check_drone()
|
drone.check_drone()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user