repl.it
@GeorgeIrvine_Fy/

Boris Johnson Vs Donald Trump

Python

No description

fork
loading
Files
  • main.py
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
import random
print("hello")
print("Welcome to the ultimate fighting game")
fighter=input("Who would you rather play as? Boris Johnson or Donald Trump?   Put 1 for Boris and 2 for Donald   ")
if fighter == "1":
  fhealth=360
  fdamage=20
  fin=(random.randint(0,100))+4
  ehealth=370
  edamage=15
  ein=(random.randint(1,101)+1)
  fighter_name=("Boris Johnson")
  print("You have chosen Boris Johnson")
if fighter == "2":
  fhealth=370
  fdamage=15
  fin=(random.randint(0,100))+4
  ehealth=360
  edamage=20
  ein=(random.randint(1,101))+1
  fighter_name=("print")
  print("You have chosen Donald Trump")
print("The FIGHT BEGINS!!!!!")
if fin >= ein:
  if ehealth>0:
    print("Your Health:" ,fhealth)
    print("Enemy Health: " ,ehealth)
    print("Choose your attack!")
    if fighter == "2":      
      print("1. Brick attack!")
      print("2. Flag Staff!")
      print("3. 'Geovermental policy'!")
    if fighter == "1":
        print("1. Brick attack!")
        print("2. Flag Staff!")
        print("3. 'Geovermental policy'!")
    
    move=input(" ")
    if move == "1":
      damage=fdamage+20
      ehealth=ehealth-damage
      damage=0
    if move == "2":
      damage=fdamage+(random.randint(-15,60))       
      ehealth=ehealth-damage
      damage=0
    if move == "3":
      damage=fdamage+(random.randint(0,30))
      ehealth=ehealth-damage
      damage=0
      enemychoice=random.randint(1,3)
    if enemychoice == 1:
      tdamage=edamage+20
      fhealth= fhealth-damage
      tdamage=0
    if enemychoice == 2:
      tdamage=edamage+(random.randint(-15,60))
      fhealth= fhealth-tdamage
      tdamage=0
    if enemychoice == 3:
      tdamage=edamage+(random.randint(0,30))
      fhealth=fhealth-tdamage
      tdamage=0