title: 2 players start with 6 markers. Each round 3 standard dice are rolled. Find the winner of the game and approximate the probability that player 2 wins
body: <p>If the roll is 11, then player 2 gives a marker to player 1, if the roll is 14 player 1 gives a marker to player 2. the first to collect 12 markers wins. The exact probability that player 2 wins is 0.0286. This is what I have so far, but nothing happens when I run it.</p>
  
  <pre><code>import random
  i = 0
  player1 = 6
  player2 = 6
  rolls = 10000
  while player1 != 12 or player2 != 12:
      for i in range(rolls):
          total = random.randint (1,6) + random.randint(1,6) + random.randint (1,6)
          if total == 11:
              player2 = player2 - 1
              player1 = player1 + 1
          if total == 14:
              player1 = player1 - 1
              player2 = player2 +1
          else:
              player1 = player1 + 0
              player2 = player2 + 0            
  if player1 == 12:
      print('Player 1 wins')
  if player2 == 12:
      print('Player 2 wins')
  </code></pre>