Research portable Memory game | Исследовать портируемую игру Память
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 6 месеца
преди 6 месеца
преди 6 месеца
преди 6 месеца
преди 6 месеца
преди 6 месеца
преди 6 месеца
преди 6 месеца
преди 6 месеца
преди 6 месеца
123456789101112131415161718192021222324252627282930313233343536373839
  1. from cli import *
  2. from cli_test import *
  3. from memory_test import *
  4. from shell import *
  5. from shell_test import *
  6. import sys
  7. print(memory_test_generateConstPlayfield())
  8. print(memory_test_selectItem_1x())
  9. print(memory_test_selectItem_2x())
  10. print(memory_test_selectItem_3x())
  11. print(memory_test_shouldDeselectMismatchedItems())
  12. print(memory_test_shouldDeselectMismatchedItems_itemTwice())
  13. print(memory_test_shouldDetectVictory())
  14. print(memory_test_shouldHideMatchingItems())
  15. print(cli_test_greetUser())
  16. print(cli_test_showHelp_h())
  17. print(cli_test_showHelp_help())
  18. print(shell_test_exit_e())
  19. print(shell_test_exit_exit())
  20. print(shell_test_exit_q())
  21. print(shell_test_exit_quit())
  22. c = shell_createContext()
  23. c.cCLI = cli_createContext()
  24. c = shell_start(c)
  25. if c.recentField == "output":
  26. print(c.output)
  27. for line in sys.stdin:
  28. c.input = line.rstrip()
  29. c = shell_processInput(c)
  30. if c.recentField == "output":
  31. print(c.output)
  32. elif c.recentField == "exit":
  33. break