Python

No description

fork
loading
Files
  • main.py
  • back.py
  • poetry.lock
  • pyproject.toml
  • requirements.txt
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#Made by ZControls.
import time
import random as rd
from termcolor import colored

print("\033[1;32;40m\n")
rival_name = input("Enter your rival's name:")
print("\033[1;32;40m\n")
gender = input('Select your gender:')
print('Hello, I am ' + rival_name.capitalize() + ' >:D' )
time.sleep(2)
print('And I am going to prove to you I am the best in any possible game.')
time.sleep(3)
print('Well that is enough about me.')
time.sleep(2)
name = input( "What is your name again?: " )
print('Oh yeah! Well I have heard that you have been getting better at games due to your non-stop training.' )
time.sleep(4)
print('Its time to put you to the test!')
if gender.capitalize() == 'Male':
  print('This game will consist of different games to see\nwho really is the GAMING KING...')
if gender.capitalize() == 'Female':
  print('This game will consist of different games to see\nwho really is the GAMING QUEEN...')

time.sleep(4)
print("*Mom enters the room*")
time.sleep(1)
print("Mom-'You can only play educational games,understood? >:/'")
time.sleep(3)
print(rival_name + "-'...'")
time.sleep(2)
print(rival_name + "-'Ok Mom....'")
time.sleep(2)
print(name.capitalize() + "-'I thought you were the best at ANY game'" )
time.sleep(3)
print(rival_name + "'-I will still prove to you I am the best!")
time.sleep(2)
Challenge = input(rival_name  + ' has given you a challenge!\nType Accept to continue:')
if Challenge == 'Accept' or 'accept' or 'ACCEPT':

  time.sleep(2)
  Decider = input('Type M to do Maths: ')
  if Decider == 'm' or 'M' :
    time.sleep(2)
    print('Math it is then!')
    time.sleep(1)
    Q1 = input("A.	When 9 is subtracted from a number and then divided by 2,\nthe answer is 4. What is the number?: ")
    if Q1 in ["17"]:
      time.sleep(1)
      print('You are correct.\n and so is ' + rival_name.capitalize() )
    else:
      time.sleep(2)
      print('You are incorrect... and ' + rival_name.capitalize() + ' is correct.')
    Q2 = input('B. The length of a rectangle is twice that of the width. The perimeter of the rectangle is 24 cm. What is the width of the rectangle?')
    if Q2 in ['4']:
      print('You are correct!\nwhile ' + rival_name.capitalize() + 'is incorrect.' )
      time.sleep(2)
      print('While' + rival_name.capitalize() + 'is incorrect.')
    else:
      print("You are incorrect while... "  + rival_name.capitalize() + "\n is correct.")
    if  (Q2)  in ['4'] and (Q1) in ['17']:
      print('You have two points in total.')
      time.sleep(2)
      print(rival_name.capitalize() + ' has 1 point.')
    if Q2 in ['4'] and Q1 not in ['17']:
      print(rival_name.capitalize() + ' has 2 points')
      time.sleep(2)
      print('You have 1 point in total.')
    if Q2 not in '4' and Q1 not in '17':
      print('You have zero points in total.')
      time.sleep(2)
      print('while ' + rival_name.capitalize() + ' has 2 points.')
    print('That was the end of maths!')

Decider1 = input('Now on to knowledge quiz! Press enter:')
E2 = input('1. A clerk in the butcher shop is 5’10” tall. What does he weigh?')
if E2 == "meat" or "Meat" or "MEAT":
  time.sleep(2)
  print("Correct you gained an extra point but so did " + rival_name.capitalize())
  print(rival_name.capitalize() + "  -*Smirks*")
else:
  print('Incorrect')
  time.sleep(2)
  print(rival_name.capitalize() + 'also got it incorrect.')
  print(rival_name.capitalize() +"'- What type of question is that!?'")
E3 = input('The more you take, the more you leave behind. What am I?')
if E3 in ['footsteps','FOOTSTEPS','Footsteps']:
  time.sleep(2)
  print('Correct! You gained one point \n while ' + rival_name.capitalize() + ' gained no point!')
else:
  print('Incorrect, ' + rival_name.capitalize() + ' got it right!')
points = input('That was the end of the game\nPlease enter your points:')
if int(points) < 2:
  print('You scored average...')
  print('You got the same as ' + rival_name.capitalize())
if int(points) >= 3 and int(points) <  4  :
  print('You scored above average!')
  print('You beat ' + rival_name.capitalize())
if int(points) >= 5:
  print('You are only cheating yourself!')
  print('Technically ' + rival_name.capitalize() + ' beat you.')