Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- import os
- import math
- import sqlite3
- import time
- from goto import *
- i = 1
- x = 1
- a = 1
- ex = "[FATAL]Such symbol does not exists!"
- en = "[FATAL]Such number does not exists!"
- er = "[FATAL]You denial from upgrade!"
- succ = "[SUCCESSFYLLY]You successfully bought upgrade!"
- answer = "[HINT]Please choose option Y or N"
- up = "[HINT]You should buy upgrade, this upgrade add +2 coins to your balance!"
- up2 = "[HINT]You should buy upgrade, this upgrade add +4 coins to your balance!"
- up3 = "[HINT]You should buy upgrade, this upgrade add +10 coins to your balance!"
- answer = "[HINT]Please choose option Y or N"
- add = "[SUCCESSFULLY]You added 1 coin!"
- add2 = "[SUCCESSFULLY]You added 2 coin!"
- add3 = "[SUCCESSFULLY]You added 3 coin"
- wl = '[HINT]Enter please "+" so that add coin from your balance!'
- balance = 0
- upgrd = 1
- yourh = 0
- coins = "coins"
- strbl = "CASH:"
- menu = ["0", "Dump", "1", "Box", "2", "Basement"]
- nem = "[FATAL]You don't have enough money!"
- prmenu = "[PRICE]\n[0]Dump: 100C\n[1]Box: 370C\n"
- succbuyh = "[SUCCESSFULLY]You bought new home"
- pen = "[HINT]Please enter number of menu!"
- glmenug = "1. Earn cash\n2. Buy home\n3. Price Homes\n4. MyStatistic\n"
- mystat = "1. Level Upgrade: %d\n2. MyHome: [NONE]\n3. [NONE]" % upgrd
- def earnupone():
- while i <= 1:
- print(wl)
- stat = input("")
- if stat == "+":
- print(add)
- balance = balance + upgrd
- print(strbl, balance, coins)
- if balance >= price:
- print(up)
- print(answer)
- quest = input("")
- if quest == "Y":
- print(succ)
- balance = balance - price
- print(strbl, balance, coins)
- break
- else:
- if quest == "N":
- print(er)
- continue
- price = 10
- def glmenugl():
- print(glmenug)
- glmen = input("")
- if glmen == "1":
- earnupone()
- if glmen == "2":
- chh()
- glmenugl()
- if glmen == "3":
- print(prmenu)
- glmenugl()
- if glmen == "4":
- print(mystat)
- print("")
- glmenugl()
- def bum():
- print(prmenu)
- def chh():
- bum()
- print(pen)
- stat = input("")
- if stat == menu[0] or menu[1] or menu[2]:
- print(succbuyh)
- glmenugl()
- while x <= 1:
- print(wl)
- stat = input("")
- if stat == "+":
- print(add2)
- upgrd = 3
- balance = balance + upgrd
- price = 30
- print(strbl, balance, coins)
- if balance >= price:
- print(up2)
- print(answer)
- quest = input("")
- if quest == "Y":
- print(succ)
- balance = balance - price
- print(strbl, balance, coins)
- #upgrd = 4
- break
- else:
- if quest == "N":
- print(er)
- continue
- while a <= 1:
- print(wl)
- stat = input("")
- if stat == "+":
- print(add3)
- balance = balance + upgrd
- price = 100
- print(strbl, balance, coins)
- if balance >= price:
- print(up3)
- print(answer)
- quest = input("")
- if quest == "Y":
- print(succ)
- balance = balance - price
- print(strbl, balance, coins)
- upgrd = 8
- break
- else:
- if quest == "N":
- print(er)
- continue
Advertisement
Add Comment
Please, Sign In to add comment