title: Python - Dice Game not stopping when hit designated score
body: <p>Beginner programmer here! For one of my classes I have to create a dice game that stops when either the player or computer reaches a score of five, however, when one person does reach the desired score, it keeps prompting the player to roll instead of printing the winString or loseString. </p>
  
  <p>EDIT: Sorry for the formatting, this is my first post here and not sure how to fix it. But thanks to your comments I got it to work! </p>
  
  <pre><code>import random
  from random import randint
  import time
  
  playerName = input("Please enter your name ") 
  
  def diceRoll(num_sides=6):
      """Returns number between 1 and 6 (inclusive)"""
      return random.randint(1,num_sides)
  
  def playGameOfDice(playerName):
      print("Hello,",playerName,". Welcome to game of dice! First to five points wins!")
      playerScore = 0
      computerScore = 0
      while playerScore &lt;= 5 or computerScore &lt;= 5: 
          print("The current score is: ",playerName, playerScore, " , computer ",computerScore)
          input("Please press 'Enter' to roll.")
          playerRoll = diceRoll()
          print("Your randomly selected number is.......... "+str(playerRoll)+".") 
          time.sleep(2)
          computerRoll = diceRoll()
          print("Computer's randomly selected number is.......... "+str(computerRoll)+".")
          time.sleep(2)
          for round in range(1):
              if playerRoll &gt; computerRoll:
                  print("You Win!")
                  playerScore += 1
              elif playerRoll == computerRoll:
                  print("Tie Game!")
                  computerScore += 1
              else:
                  print("You Lose :(")
                  computerScore += 1
      if playerScore &gt; computerScore == playerWins:
          return True
      else:
          return False
  
  
  
  
  playerWins = playGameOfDice(playerName)
  
  if playerWins == True:
      winnerString = "*  " + playerName + " Wins!  *"
  else:
     winnerString = "*  Good luck next time! Thanks for playing!  *"
  </code></pre>