Research portable Memory game | Исследовать портируемую игру Память
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

40 líneas
990B

  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