from cli import * from cli_test import * from memory_test import * from shell import * from shell_test import * import sys print(memory_test_generateConstPlayfield()) print(memory_test_selectItem_1x()) print(memory_test_selectItem_2x()) print(memory_test_selectItem_3x()) print(memory_test_shouldDeselectMismatchedItems()) print(memory_test_shouldDeselectMismatchedItems_itemTwice()) print(memory_test_shouldDetectVictory()) print(memory_test_shouldHideMatchingItems()) print(cli_test_greetUser()) print(cli_test_showHelp_h()) print(cli_test_showHelp_help()) print(shell_test_exit_e()) print(shell_test_exit_exit()) print(shell_test_exit_q()) print(shell_test_exit_quit()) c = shell_createContext() c.cCLI = cli_createContext() c = shell_start(c) if c.recentField == "output": print(c.output) for line in sys.stdin: c.input = line.rstrip() c = shell_processInput(c) if c.recentField == "output": print(c.output) elif c.recentField == "exit": break