def mkComputerArena(screen, x, y, id): if id.isupper(): computer = Computer(screen, x, y, radius=30) computer.count = 15 else: computer = Computer(screen, x, y, radius=15) computer.count = 5 if id == "A" or id == "B": computer.changeOwner("RED") computer.count = 10 elif id == "Y" or id == "Z": computer.changeOwner("GREEN") computer.count = 10 return computer
def mkComputer(screen, x, y, id): if id.isupper(): if id == "Z": computer = Computer(screen, x, y, radius=60) computer.count = 150 else: computer = Computer(screen, x, y, radius=30) computer.count = 15 else: computer = Computer(screen, x, y, radius=15) computer.count = 5 if id == "a": computer.changeOwner("RED") computer.count = 10 elif id == "G": computer = Computer(screen, x, y, radius=15) computer.changeOwner("GREEN") computer.count = 10 return computer