forked from everybees/python_with_cohorts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathten_ten.py
More file actions
22 lines (18 loc) · 903 Bytes
/
ten_ten.py
File metadata and controls
22 lines (18 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
scoreCounter=0
rightLeg="rl"
leftLeg="ll"
player1Counter=0
player2Counter=0
while scoreCounter<=5:
player1=input("enter left or right leg")
player2=input("enter left or right leg")
scoreCounter = scoreCounter + 1
if(player1==rightLeg and player2==leftLeg):player1Counter=player1Counter+1
if(player2==rightLeg and player1==leftLeg):player1Counter=player1Counter+1
if(player1==leftLeg and player2==rightLeg):player1Counter=player1Counter+1
if(player2==leftLeg and player1==rightLeg):player2Counter=player2Counter+1
if(player1==rightLeg and player2==rightLeg):player2Counter=player2Counter+1
if(player2==rightLeg and player1==rightLeg):player1Counter=player1Counter+1
if(player1==leftLeg and player2==leftLeg):player2Counter=player2Counter+1
if(player2==leftLeg and player1==leftLeg):player1Counter=player1Counter+1
print(player1Counter, player2Counter)