from functions.input_number import inputSelection, inputNumber
from functions.numbers_generator import randomNumberGenerator
from game.human_play import humanPlay
from game.machine_play import machinePlay

def gamePlay():
    
    print("Welcome!")
    prompt = """Please, select one of the options:\n
                \n1) The human guess the number
                \n2) The machine guess the number\n
                \nType the number of your option (1 or 2): >>> """
    selection = inputSelection(prompt)

    if selection == 1:
        machineNumber = randomNumberGenerator()
        humanNumber = inputNumber()

        humanPlay(humanNumber, machineNumber)

    if selection == 2:

        humanNumber = inputNumber("Please, enter a four-digit number for the machine: >>> ")
        machinePlay(humanNumber)

gamePlay()

34d2ac84285bf3ac164ae8c0f459e6fe80dc5b7b
<mask token>

<mask token>


def gamePlay():
    print('Welcome!')
    prompt = """Please, select one of the options:

                
1) The human guess the number
                
2) The machine guess the number

                
Type the number of your option (1 or 2): >>> """
    selection = inputSelection(prompt)
    if selection == 1:
        machineNumber = randomNumberGenerator()
        humanNumber = inputNumber()
        humanPlay(humanNumber, machineNumber)
    if selection == 2:
        humanNumber = inputNumber(
            'Please, enter a four-digit number for the machine: >>> ')
        machinePlay(humanNumber)


<mask token>

<mask token>


def gamePlay():
    print('Welcome!')
    prompt = """Please, select one of the options:

                
1) The human guess the number
                
2) The machine guess the number

                
Type the number of your option (1 or 2): >>> """
    selection = inputSelection(prompt)
    if selection == 1:
        machineNumber = randomNumberGenerator()
        humanNumber = inputNumber()
        humanPlay(humanNumber, machineNumber)
    if selection == 2:
        humanNumber = inputNumber(
            'Please, enter a four-digit number for the machine: >>> ')
        machinePlay(humanNumber)


gamePlay()

from functions.input_number import inputSelection, inputNumber
from functions.numbers_generator import randomNumberGenerator
from game.human_play import humanPlay
from game.machine_play import machinePlay


def gamePlay():
    print('Welcome!')
    prompt = """Please, select one of the options:

                
1) The human guess the number
                
2) The machine guess the number

                
Type the number of your option (1 or 2): >>> """
    selection = inputSelection(prompt)
    if selection == 1:
        machineNumber = randomNumberGenerator()
        humanNumber = inputNumber()
        humanPlay(humanNumber, machineNumber)
    if selection == 2:
        humanNumber = inputNumber(
            'Please, enter a four-digit number for the machine: >>> ')
        machinePlay(humanNumber)


gamePlay()

from functions.input_number import inputSelection, inputNumber
from functions.numbers_generator import randomNumberGenerator
from game.human_play import humanPlay
from game.machine_play import machinePlay

def gamePlay():
    
    print("Welcome!")
    prompt = """Please, select one of the options:\n
                \n1) The human guess the number
                \n2) The machine guess the number\n
                \nType the number of your option (1 or 2): >>> """
    selection = inputSelection(prompt)

    if selection == 1:
        machineNumber = randomNumberGenerator()
        humanNumber = inputNumber()

        humanPlay(humanNumber, machineNumber)

    if selection == 2:

        humanNumber = inputNumber("Please, enter a four-digit number for the machine: >>> ")
        machinePlay(humanNumber)

gamePlay()
