rock scissor paper program
<p>Here are code for writing rock scissors paper game in python.
If I run the code, it works but, when it becomes tie, it outputs like this.
Is there anyway I can eliminate print(round) when I get result of tie?
I want to look it like as shown at bottom of example</p>

<p>*********************ROUND #1*********************</p>

<p>Pick your throw: [r]ock, [p]aper, or [s]cissors? p
Tie!</p>

<p>*********************ROUND #1*********************</p>

<p>Pick your throw: [r]ock, [p]aper, or [s]cissors? s
Computer threws rock, you lose!</p>

<p>Your Score:  0
Computer Score:  1</p>

<p>********************* ROUND #3 *********************</p>

<p>Pick your throw: [r]ock, [p]aper, or [s]cissors? s
 Tie!</p>

<p>Pick your throw: [r]ock, [p]aper, or [s]cissors? p
 Tie!</p>

<p>Pick your throw: [r]ock, [p]aper, or [s]cissors? r
 Computer threw scissors, you win!</p>

<p>Your score: 2
Computerâs score: 1</p>

<pre><code># A Python program for the Rock, Paper, Scissors game. 
import random

def rock_paper_scissors():
''' Write your code for playing Rock Paper Scissors here. '''
user = 0
computer = 0
rounds = 1   

print()
score = (int(input('How many points does it take to win? ')))
print()

while (computer &lt; score and user &lt; score):
    RPS = random.randint(0,2)
    if (RPS == 0):
        RPS = 'rock'
    elif (RPS == 1):
        RPS = 'paper'
    elif(RPS == 2):
        RPS = 'scissors'


    print('*'*21 + 'ROUND #'+str(rounds) + '*'*21)
    print()
    player = (input('Pick your throw: [r]ock, [p]aper, or [s]cissors? '))


    if  RPS == 'rock' and player == 'r':
        print('Tie!')

    elif RPS == 'rock' and player == 's':
        print('Computer threws rock, you lose!')
        computer+=1
        rounds += 1
        print()
        print('Your Score: ',user)
        print('Computer Score: ',computer)
    elif RPS == 'rock' and player == 'p':
        print('Computer threw rock, you win!')
        user+=1
        rounds +=1
        print()
        print('Your Score: ',user)
        print('Computer Score: ',computer)            
    if  RPS == 'paper' and player == 'p':
        print('Tie!')
    elif RPS == 'paper' and player == 'r':
        print('Computer threw paper, you lose!')
        computer +=1
        rounds += 1
        print()
        print('Your Score: ',user)
        print('Computer Score: ',computer)            
    elif RPS == 'paper' and player == 's':
        print('Computer threw paper, you win!')
        user +=1
        rounds +=1
        print()
        print('Your Score: ',user)
        print('Computer Score: ',computer)        
    if RPS == 'scissors' and player == 's':
        print('Tie!')
    elif RPS == 'scissors'and player == 'p':
        print('Computer threw scissors, you lose!')
        computer +=1
        rounds+=1
        print()
        print('Your Score: ',user)
        print('Computer Score: ',computer)            
    elif RPS == 'scissors' and player == 'r':
        print('Computer threw scissors, you win!')
        user +=1
        rounds+=1
        print()
        print('Your Score: ',user)
        print('Computer Score: ',computer)            
    print()

if user&gt; computer:
    print('*'*21 + 'GAME OVER' + '*'*21)
    print('You win!')
else:
    print('*'*21 + 'GAME OVER' + '*'*21)
    print('Computer win!')

print()        

def main(): 
print('ROCK PAPER SCISSORS in Python')
print()
print('Rules: 1) Rock wins over Scissors.')
print('       2) Scissors wins over Paper.')
print('       3) Paper wins over Rock.')

rock_paper_scissors()

main()
</code></pre>

<p>I'd recommend creating a boolean <code>was_tied</code>, setting it to equal <code>False</code> at the start of the program, and setting it to either <code>True</code> or <code>False</code> at the end of each possible outcome. Then you can put your print-round code inside of an <code>if not was_tied</code> statement.</p>

python