Research portable Memory game | Исследовать портируемую игру Память
Nevar pievienot vairāk kā 25 tēmas
Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
|
- from cli import *
- from cli_test import *
- from memory_test import *
- from shell 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())
-
- c = shell_createContext()
- c.cCLI = cli_createContext()
- c.cCLI.cMemory = memory_createContext()
-
- c = shell_launch(c)
- print(c.output)
-
- for line in sys.stdin:
- c.input = line.rstrip()
- c = shell_processInput(c)
- if c.exit:
- break
- print(c.output)
|