def ask_number_of_people() -> int:
    """Ask how many people it is going to start playing the game"""
    while True:
        try:
            number_of_people = int(
                input("How many people are going to play? (1-5)\n> ")
            )
        except ValueError:
            print("Please, use only numbers.\n")
        else:
            if not 0 < number_of_people <= 5:
                print("The number of people must be between 1 and 5\n")
            else:
                break

    return number_of_people