Skip to content

Instantly share code, notes, and snippets.

@kvba0000
Last active February 4, 2024 15:37
Show Gist options
  • Save kvba0000/cc4d22b7bf638b34b729efdb1e402320 to your computer and use it in GitHub Desktop.
Save kvba0000/cc4d22b7bf638b34b729efdb1e402320 to your computer and use it in GitHub Desktop.
DONTFORGET Pog Calculator - Calculate how many gold do you need to get Rainbow soul in DONTFORGET - game by RickyG!
from sys import platform
nmbrs = []
pog_cost = 250
all_pogs = 24 * 999
def up_line():
if platform != "win32":
print("\033[1A\033[K\033[1A")
while len(nmbrs) != 24:
p = ""
while not p.isnumeric():
p = input(f"#{len(nmbrs)+1} pog count:")
up_line()
n = int(p)
if n <= 999 and n >= 0:
nmbrs.append(n)
cost = (all_pogs - sum(nmbrs)) * pog_cost
print(f"You need {cost} gold to get rainbow soul")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment