input: 
  # Rock, paper, scissors game!
  
  def play_game(player1, player2):
      """ Implement a decision-making algorithm for a rock-paper-scissors game.
      The function should take two inputs, player1 and player2, representing
      the choices of the two players. It should then determine the outcome based
      on the predefined rules of the game and return a string indicating the
      result.
      >>> play_game('rock', 'scissors')
      'Player 1 wins!'
      >>> play_game('paper', 'paper')
      'It is a draw!'
      >>> play_game('scissors', 'rock')
      'Player 2 wins!'
      """
      # Define the winning rules
      rules = {'rock': 'scissors', 'scissors': 'paper', 'paper': 'rock'}
      if player1 == player2:
          return 'It is a draw!'
      elif rules[player1] == player2:
          return 'Player 1 wins!'
      elif rules[player2] == player1:
          return 'Player 2 wins!'
  
output:     rules = {'rock': 'scissors', 'scissors': 'paper', 'paper': 'rock'}
      if player1 == player2:
          return 'It is a draw!'
      elif rules[player1] == player2:
          return 'Player 1 wins!'
      elif rules[player2] == player1:
          return 'Player 2 wins!'