title: How do I alter functions on different files?
body: <p>I'm curious if it's possible for me to change the functions from different files in Python.</p>
  
  <p>What psrock.py file does is that it receives two datas from each file that will go against each other in rock paper scissors and deciding which player have won. Of course, psrock.py file contains other functions, too, but I just inserted one function since other ones don't really matter for my question.</p>
  
  <p>I'm trying to edit the function that's in psrock.py file so that team3's (there are team1, team2, team3 and they play rock paper scissors against one another. (i.e. team1 and team 2 go against each other then team 1 and 3 after. vice versa)) result will always be rock and the opponent's result will be scissors so that team3 can win no matter what.</p>
  
  <p>However, I am struggling and don't know what to do.. :( I barely started learning Python and it's pretty challenging task for me to do. I would love it if you can help me out a little bit ;)</p>
  
  <pre><code># This is a function from psrock.py file
  import team3
  
  def round(player1, player2, history1='', history2=''):
  
      # Get player 1's move. 
      move1 = player1(my_history=history1, their_history=history2)
      # Get player 2's move. 
      move2 = player2(my_history=history2, their_history=history1)
  
      if valid(move1) and valid(move2):      
          if move1 == move2:
              score1, score2 = 0, 0
          elif move1+move2 in ['rs', 'sp', 'pr']:
              score1, score2 = 1, -1
          else:
              score1, score2 = -1, 1
      else: #one of the moves was invalid
          if valid(move1): # only move2 was invalid
              move2 = 'x'
              score1, score2 = 1, -1
          elif valid(move2): # only move1 was invalid
              move1 = 'x'
              score1, score2 = -1, 1
          else: # Both moves invalid
              move1, move2 = 'x', 'x'
              score1, score2 = -1, -1
  
      return move1, move2, score1, score2
  </code></pre>
  
  <p>...And I'm trying to edit this function from another file named team3...</p>
  
  <pre><code># Team 3 File
  # -*- coding: utf-8 -*-
  import psrock
  
  def round(player1, player2, history1='', history2=''):
      move1 = player1(my_history=history1, their_history=history2)
      if player1 == team3:
          move1 = 'r'
          move2 = 's'
      elif player2 == team3:
          move1 = 's'
          move2 = 'r'
  </code></pre>
  
  <p>The Files:</p>
  
  <hr>
  
  <ol>
  <li>Download the File</li>
  <li>Extract the zip file</li>
  <li>Open all of the files in the same tab</li>
  <li>Play the psrock_play.py file 
  
  <hr></li>
  </ol>
  
  <p><a href="https://drive.google.com/file/d/0BxNi5bq6Cvnea0c4aVVIWUxZRUE/view?usp=sharing" rel="nofollow">https://drive.google.com/file/d/0BxNi5bq6Cvnea0c4aVVIWUxZRUE/view?usp=sharing</a></p>