|
| 1 | +import time |
| 2 | + |
| 3 | +print("Welcome to SS x VR Technological Department") |
| 4 | +print("-------------------------------------------") |
| 5 | +print("System13 fairness program") |
| 6 | +print("") |
| 7 | +def checkplayer() : |
| 8 | + playerinput = str(input("Player Here: ")) |
| 9 | + print("Loading...") |
| 10 | + #Tier4 |
| 11 | + if playerinput == ("teelek") : |
| 12 | + playerinput = int(4) |
| 13 | + if playerinput == ("levi") : |
| 14 | + playerinput = int(4) |
| 15 | + if playerinput == ("kin") : |
| 16 | + playerinput = int(4) |
| 17 | + if playerinput == ("techin") : |
| 18 | + playerinput = int(4) |
| 19 | + #Tier3 |
| 20 | + if playerinput == ("ryu") : |
| 21 | + playerinput = int(3) |
| 22 | + if playerinput == ("ran") : |
| 23 | + playerinput = int(3) |
| 24 | + if playerinput == ("vor") : |
| 25 | + playerinput = int(3) |
| 26 | + if playerinput == ("porsche") : |
| 27 | + playerinput = int(3) |
| 28 | + if playerinput == ("hero") : |
| 29 | + playerinput = int(3) |
| 30 | + if playerinput == ("nutboy") : |
| 31 | + playerinput = int(3) |
| 32 | + if playerinput == ("nile") : |
| 33 | + playerinput = int(3) |
| 34 | + if playerinput == ("saika") : |
| 35 | + playerinput = int(3) |
| 36 | + #Tier2 |
| 37 | + if playerinput == ("panpan") : |
| 38 | + playerinput = int(2) |
| 39 | + if playerinput == ("sen") : |
| 40 | + playerinput = int(2) |
| 41 | + if playerinput == ("nut") : |
| 42 | + playerinput = int(2) |
| 43 | + if playerinput == ("zach") : |
| 44 | + playerinput = int(2) |
| 45 | + if playerinput == ("shimon") : |
| 46 | + playerinput = int(2) |
| 47 | + #Tier1 |
| 48 | + if playerinput == ("neo") : |
| 49 | + playerinput = int(1) |
| 50 | + if playerinput == ("berry") : |
| 51 | + playerinput = int(1) |
| 52 | + print("Success!") |
| 53 | + print("----") |
| 54 | + return(playerinput) |
| 55 | + |
| 56 | +""" |
| 57 | +Tier to Integer |
| 58 | +4 = Tier S |
| 59 | +3 = Tier A |
| 60 | +2 = Tier B |
| 61 | +1 = Tier C |
| 62 | +""" |
| 63 | +#Input Process |
| 64 | +while True : |
| 65 | + |
| 66 | + print("Currently Calulating Defenders' points") |
| 67 | + print("") |
| 68 | + |
| 69 | + cs = 0 |
| 70 | + print("Player Number 1 Defenders") |
| 71 | + p1d = checkplayer() |
| 72 | + cs += p1d |
| 73 | + print("Current Score ", cs) |
| 74 | + print("Player Number 2 Defenders") |
| 75 | + p2d = checkplayer() |
| 76 | + cs += p2d |
| 77 | + print("Current Score ", cs) |
| 78 | + print("Player Number 3 Defenders") |
| 79 | + p3d = checkplayer() |
| 80 | + cs += p3d |
| 81 | + print("Current Score ", cs) |
| 82 | + print("Player Number 4 Defenders") |
| 83 | + p4d = checkplayer() |
| 84 | + cs += p4d |
| 85 | + print("Current Score ", cs) |
| 86 | + print("Player Number 5 Defenders") |
| 87 | + p5d = checkplayer() |
| 88 | + cs += p5d |
| 89 | + print("Current Score ", cs) |
| 90 | + |
| 91 | + dscore = cs |
| 92 | + print("Deffenders Currently have" , dscore, "points") |
| 93 | + |
| 94 | + print("") |
| 95 | + print("") |
| 96 | + |
| 97 | + print("Currently Calulating Attackers' points") |
| 98 | + print("") |
| 99 | + |
| 100 | + csa = 0 |
| 101 | + print("Player Number 1 Attackers") |
| 102 | + p1a = checkplayer() |
| 103 | + csa += p1a |
| 104 | + print("Current Score ", csa) |
| 105 | + print("Player Number 2 Attackers") |
| 106 | + p2a = checkplayer() |
| 107 | + csa += p2a |
| 108 | + print("Current Score ", csa) |
| 109 | + print("Player Number 3 Attakers") |
| 110 | + p3a = checkplayer() |
| 111 | + csa += p3a |
| 112 | + print("Current Score ", csa) |
| 113 | + print("Player Number 4 Attackers") |
| 114 | + p4a = checkplayer() |
| 115 | + csa += p4a |
| 116 | + print("Current Score ", csa) |
| 117 | + print("Player Number 5 Attackers") |
| 118 | + p5a = checkplayer() |
| 119 | + csa += p5a |
| 120 | + print("Current Score ", csa) |
| 121 | + |
| 122 | + print("-----------------") |
| 123 | + |
| 124 | + ascore = csa |
| 125 | + print("Attackers Currently have" , ascore, "points") |
| 126 | + print("") |
| 127 | + |
| 128 | + scoredif = 0 |
| 129 | + if ascore < dscore : |
| 130 | + scoredif = dscore - ascore |
| 131 | + else : |
| 132 | + scoredif = ascore - dscore |
| 133 | + |
| 134 | + # Annouce and Find Result |
| 135 | + print("Result :") |
| 136 | + if ascore == dscore : |
| 137 | + print ("Fair! With the Score of ", ascore, " each!") |
| 138 | + else : |
| 139 | + if ascore != dscore : |
| 140 | + print("Unfair! Defenders' have ", scoredif, " more point(s).") |
| 141 | + else : |
| 142 | + scoredif = ascore - dscore |
| 143 | + print("Unfair! Attackers' have ", scoredif, " more point(s).") |
| 144 | + |
| 145 | + print("") |
| 146 | + |
| 147 | + # End program |
| 148 | + if scoredif > 0 : |
| 149 | + i = 0 |
| 150 | + print("team is not fair the system will auto restart") |
| 151 | + for i in range(0,3): |
| 152 | + print(i) |
| 153 | + time.sleep(2) |
| 154 | + continue |
| 155 | + else : |
| 156 | + break |
| 157 | + |
0 commit comments