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.

main.py 790B

6 kuukautta sitten
6 kuukautta sitten
6 kuukautta sitten
6 kuukautta sitten
6 kuukautta sitten
6 kuukautta sitten
6 kuukautta sitten
6 kuukautta sitten
6 kuukautta sitten
6 kuukautta sitten
6 kuukautta sitten
6 kuukautta sitten
1234567891011121314151617181920212223242526272829303132
  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_showHelp_h())
  16. print(cli_test_showHelp_help())
  17. c = shell_createContext()
  18. c.cCLI = cli_createContext()
  19. c.cCLI.cMemory = memory_createContext()
  20. c = shell_launch(c)
  21. print(c.output)
  22. for line in sys.stdin:
  23. c.input = line.rstrip()
  24. c = shell_processInput(c)
  25. if c.exit:
  26. break
  27. print(c.output)