def main():
    """Brain game for odd even main logic."""
    cli.welcome()
    name = cli.get_name()
    print('Answer "yes" if the number is even, otherwise answer "no".')
    game_logic.logic('even', name)
def main():
    """Start the script."""
    logic(instruction, generator, check_calculation)
Exemple #3
0
def main():
    """Brain game for common divider."""
    cli.welcome()
    name = cli.get_name()
    print('Find the greatest common divisor of given numbers.')
    game_logic.logic('gcd', name)
Exemple #4
0
def main():
    """Brain game for missing piece of progression."""
    cli.welcome()
    name = cli.get_name()
    print('What number is missing in the progression?')
    game_logic.logic('progr', name)
def main():
    """Start the script."""
    logic(instruction, generator, check_progression)
Exemple #6
0
def main():
    """Brain game for calc main logic."""
    cli.welcome()
    name = cli.get_name()
    print('What is the result of the expression?')
    game_logic.logic('calc', name)