Ball Chopper
Ball Chopper import time import os import random import sys ''' Spencer Guillen's Ball Chopper 10001 ''' name = await input("What is your name?\n...: ") opponent = await input("Who is your opponent?\n...: ") owies = await input("How many owies do you not want?\n...: ") print("\033[2J\033[H", end="") def ouchieman(character, numOfOwie): # Example of printing in 1MB chunks to save memory CHUNK_SIZE = 10**6 print(f"{character}: ", end="") # Print the "A"s in chunks for _ in range(numOfOwie // CHUNK_SIZE): print("A" * CHUNK_SIZE, end="") print("A" * (numOfOwie % CHUNK_SIZE), end="") # Print the "H"s in chunks for _ in range(numOfOwie // CHUNK_SIZE): print("H" * CHUNK_SIZE, end="") print("H" * (numOfOwie % CHUNK_SIZE)) # Final newline here def init(character, chopper, owies2): print(character + ": I sure do like my ballsack!") time.sleep(2) print(chopper + ": Oh, you like your balls huh?") time.sleep(3) print(chopper + ": Well, I don't.") time.sleep(2) print(chopper + ": so say goodbye to them!!!") time.sleep(2) print("*Chops off your balls*") time.sleep(2) print(owies2) print(type(owies2)) time.sleep(2) ouchieman(character, owies2) init(name, opponent, int(owies))

Ball Chopper is a small Python joke “game” where you enter your name, your enemy’s name, and a number. Then it prints some dialogue.

I wouldn’t really consider it a game, but it’s whatever.

Scroll to Top
x  Powerful Protection for WordPress, from Shield Security
This Site Is Protected By
Shield Security