|  2.  | Start a challenge by typing "start".                        |
    |  3.  | Read description from the "challenges" folder               |
    |  4.  | Implement the required method in                            |
    |      |   ./lib/solutions                                           |
    |  5.  | Deploy to production by typing "deploy".                    |
    |  6.  | Observe output, check for failed requests.                  |
    |  7.  | If passed, go to step 3.                                    |
    +------+-------------------------------------------------------------+
 
    You are encouraged to change this project as you please:
         * You can use your preferred libraries.
         * You can use your own test framework.
         * You can change the file structure.
         * Anything really, provided that this file stays runnable.
 
"""

runner = QueueBasedImplementationRunnerBuilder()\
    .set_config(Utils.get_runner_config())\
    .with_solution_for('sum', sum_solution.compute)\
    .with_solution_for('hello', hello_solution.hello)\
    .with_solution_for('fizz_buzz', fizz_buzz_solution.fizz_buzz)\
    .with_solution_for('checkout', checkout_solution.checkout)\
    .create()

ChallengeSession\
    .for_runner(runner)\
    .with_config(Utils.get_config())\
    .with_action_provider(lambda: get_user_input(sys.argv[1:]))\
    .start()
Example #2
0
# coding=utf-8

import sys
from runner.user_input_action import get_user_input

if __name__ == '__main__':
    i = get_user_input(sys.argv[1:])
    print i

    s = unicode("café", 'utf8')
    print "Hello %s" % s