outputFile.write("1\n") else: outputFile.write("2\n") outputFile.write("{}\n".format(myBoard.getSnapshot())) for move in movesMade: outputFile.write("{}\n".format(move)) outputFile.write("\n") # print myBoard moveMade = False if currentPlayer == npcColor: print "NPC'S TURN" elif currentPlayer == userColor: print "{}'s TURN".format(userName) if currentPlayer == npcColor: playerInput = npc.getNPCInput(myBoard) npcInput = playerInput elif auto == True: playerInput = randomUserInput() userInput = playerInput else: playerInput = str(raw_input(prompt)).lower() userInput = playerInput # Quit if playerInput == "quit" or playerInput == "q": print "Bye!" break movesMade.append(playerInput) # Parsing input meaning.