Skip to content

Commit

Permalink
well, guess it was seconds
Browse files Browse the repository at this point in the history
idk man
  • Loading branch information
M1naR0blox authored Nov 4, 2023
1 parent 8ff39e0 commit 30cce47
Show file tree
Hide file tree
Showing 3 changed files with 222 additions and 0 deletions.
104 changes: 104 additions & 0 deletions calc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
global textperm
textperm = "True"

def sleep(arg):
import time
time.sleep(arg)

def clear():
import os
os.system("cls")

def sum(sum1, sum2):
sum3 = sum1 + sum2
if textperm == "True":
print(sum3)


def less(less1, less2):
less3 = less1 - less2
if textperm == "True":
print(less3)


def multiply(multiply1, multiply2):
multiply3 = multiply1 * multiply2
if textperm == "True":
print(multiply3)


def divide(divide1, divide2):
divide3 = divide1 / divide2
if textperm == "True":
print(divide3)

def loading_anim():
clear()
print("Loading")
sleep(0.2)
clear()
print("Loading.")
sleep(0.2)
clear()
print("Loading..")
sleep(0.2)
clear()
print("Loading...")
sleep(0.2)
clear()
print("Loading")
sleep(0.2)
clear()
print("Loading.")
sleep(0.2)
clear()
print("Loading..")
sleep(0.2)
clear()
print("Loading...")
sleep(0.2)
clear()


def calculator():
loading_anim()
print("Calculator by VariaCode")
sleep(0.5)
print("[1] Sum")
sleep(0.5)
print("[2] Less")
sleep(0.5)
print("[3] Multiply")
sleep(0.5)
print("[4] Divide")
sleep(0.5)
option = int(input(">>> "))
while True:
if option == 1:
textperm = True
u = int(input("Input first number "))
i = int(input("Input second number "))
sum(u, i)
textperm = False
if option == 2:
textperm = True
u = int(input("Input first number "))
i = int(input("Input second number "))
less(u, i)
textperm = False
if option == 3:
textperm = True
u = int(input("Input first number "))
i = int(input("Input second number "))
multiply(u, i)
textperm = False
if option == 3:
textperm = True
u = int(input("Input first number "))
i = int(input("Input second number "))
divide(u, i)
textperm = False
if option == 69 or option == 420 or option > 7 or option < 68:
break

calculator()
38 changes: 38 additions & 0 deletions games.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import random
def random_num(arg2, arg3):
arg4 = random.randint(arg2, arg3)
return arg4
if textperm == "True":
print(arg4)

def text(arg):
print(arg)

def games(option):
if option == "":
text("To choose a game, please put in on the code")

if option == "help":
text("Type the name, not the number")
text("1.- Guess the number")
text("2.- Coming soon")

if option == "Guess the number":
randomnumber = random_num(1, 100000)
text("Guess the number")
while True:
playernumber = int(input(">>> "))
if playernumber > randomnumber:
text("You Passed It")
if playernumber < randomnumber:
text("You Havent Passed It")
if playernumber == randomnumber:
text("You Won!")
if playernumber == "break":
break


else:
text("This game aint existing")

games("Guess the number")
80 changes: 80 additions & 0 deletions variacode.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
import time
import random
import os
import games
import calc

global textperm
textperm = "False"


# VariaCode related thing

def text(arg):
print(arg)


def sleep(arg1):
time.sleep(arg1)


def clear():
os.system("clear")


def random_num(arg2, arg3):
arg4 = random.randint(arg2, arg3)
return arg4
if textperm == "True":
print(arg4)


def random_letter(arg5, arg6):
arg7 = random.randint(arg5, arg6)
if textperm == "True":
print(arg7)


def userprompt(prompt):
usarp = input(prompt)
if textperm == "True":
print(usarp)


def numbprompt(prompt):
usar = int(input(prompt))
if textperm == "True":
print(usar)


def higher(num1, num2):
if num1 > num2:
# Change code
something = 0


def less(num3, num4):
if num3 < num4:
# Change code
something = 0


def equ4l(num5, num6):
if num5 == num6:
# Change code
while True:
if num5 == num6:
break


def equal(num5, num6):
if num5 == num6:
# Change code
something = 0

def leave():
exit()


def windowsonly_startfile(arg1):
os.startfile(arg1)

1 comment on commit 30cce47

@M1naR0blox
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this separation changed all of this

Please sign in to comment.