Research portable Memory game | Исследовать портируемую игру Память
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

49 行
1.2KB

  1. from cli import *
  2. from cli_test import *
  3. from memory_test import *
  4. #from shell import *
  5. #import sys
  6. print(memory_test_deselectMismatchedItems())
  7. print(memory_test_deselectMismatchedItems_itemTwice())
  8. print(memory_test_detectVictory())
  9. print(memory_test_generateConstPlayfield())
  10. print(memory_test_hideMatchingItems())
  11. print(memory_test_selectItem_1x())
  12. print(memory_test_selectItem_2x())
  13. print(memory_test_selectItem_3x())
  14. print(cli_test_greetUser())
  15. #print(cli_test_selectItem())
  16. #print(cli_test_shouldPromptSelection())
  17. ##print(cli_test_shouldReportIvalidItemSelection_outOfBoundsMin())
  18. #print(cli_test_showHelp_h())
  19. #print(cli_test_showHelp_help())
  20. def printOutput(c):
  21. if c.recentField.startswith("output")):
  22. print(getatter(c, c.recentField))
  23. ctrl = ContextController()
  24. ctrl.callback(printOutput)
  25. ctrl.set("didLaunch", True)
  26. #
  27. #c = shell_createContext()
  28. #c.cCLI = cli_createContext()
  29. #c.cCLI.cMemory = memory_createContext()
  30. #c.cCLI.cMemory.playfieldSize = 2
  31. #c.cCLI.cMemory = memory_generateConstPlayfield(c.cCLI.cMemory)
  32. #
  33. #c = shell_launch(c)
  34. #print(c.output)
  35. #
  36. #for line in sys.stdin:
  37. # c.input = line.rstrip()
  38. # c = shell_processInput(c)
  39. # if c.exit:
  40. # break
  41. # print(c.output)