Research portable Memory game | Исследовать портируемую игру Память
Nelze vybrat více než 25 témat
Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
|
- 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
|