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

main.py 1021B

6ヶ月前
6ヶ月前
6ヶ月前
6ヶ月前
6ヶ月前
6ヶ月前
6ヶ月前
6ヶ月前
6ヶ月前
6ヶ月前
6ヶ月前
6ヶ月前
6ヶ月前
6ヶ月前
6ヶ月前
6ヶ月前
12345678910111213141516171819202122232425262728293031323334353637
  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_generateConstPlayfield())
  7. print(memory_test_selectItem_1x())
  8. print(memory_test_selectItem_2x())
  9. print(memory_test_selectItem_3x())
  10. print(memory_test_shouldDeselectMismatchedItems())
  11. print(memory_test_shouldDeselectMismatchedItems_itemTwice())
  12. print(memory_test_shouldDetectVictory())
  13. print(memory_test_shouldHideMatchingItems())
  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. c = shell_createContext()
  21. c.cCLI = cli_createContext()
  22. c.cCLI.cMemory = memory_createContext()
  23. c.cCLI.cMemory.playfieldSize = 2
  24. c.cCLI.cMemory = memory_generateConstPlayfield(c.cCLI.cMemory)
  25. c = shell_launch(c)
  26. print(c.output)
  27. for line in sys.stdin:
  28. c.input = line.rstrip()
  29. c = shell_processInput(c)
  30. if c.exit:
  31. break
  32. print(c.output)