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-gui.py 2.3KB

5 kuukautta sitten
4 kuukautta sitten
5 kuukautta sitten
5 kuukautta sitten
5 kuukautta sitten
4 kuukautta sitten
5 kuukautta sitten
5 kuukautta sitten
4 kuukautta sitten
5 kuukautta sitten
4 kuukautta sitten
5 kuukautta sitten
5 kuukautta sitten
5 kuukautta sitten
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. import arcade
  2. from cli import *
  3. from cli_test import *
  4. from ctx import *
  5. from ctx_test2 import *
  6. from gui import *
  7. from gui_test import *
  8. from llm_test import *
  9. from llm_test_Python import *
  10. from memory_test import *
  11. from Window import *
  12. import sys
  13. print(ctx_test_Controller_executeFunctions_registerFunction_set())
  14. print(ctx_test_Controller_processQueue())
  15. print(ctx_test_Controller_registerFieldCallback_match())
  16. print(ctx_test_Controller_registerFieldCallback_mismatch())
  17. print(ctx_test_memoryContext_field())
  18. print(ctx_test_memoryContext_setField())
  19. print(llm_test_Python_copyByValue())
  20. print(llm_test_isDigit_digit())
  21. print(llm_test_isDigit_notDigit())
  22. print(llm_test_strToInt())
  23. print(memory_test_detectMismatchedItems())
  24. print(memory_test_detectMismatchedItems_itemTwice())
  25. print(memory_test_detectVictory())
  26. print(memory_test_generateConstPlayfield())
  27. print(memory_test_hideMatchingItems())
  28. print(memory_test_selectItem_1x())
  29. print(memory_test_selectItem_2x())
  30. print(memory_test_selectItem_3x())
  31. print(cli_test_exit_e())
  32. print(cli_test_exit_exit())
  33. print(cli_test_exit_victory())
  34. print(cli_test_exit_q())
  35. print(cli_test_exit_quit())
  36. print(cli_test_goOn())
  37. print(cli_test_greetUser())
  38. print(cli_test_showHelp_h())
  39. print(cli_test_showHelp_help())
  40. print(cli_test_selectItem())
  41. print(cli_test_promptSecondItemSelection())
  42. print(cli_test_reportMatchedItems())
  43. print(cli_test_reportMismatchedItems())
  44. print(cli_test_reportVictory())
  45. print(test_gui_generateTextureDescriptions())
  46. ctrl = ctx_Controller(memory_createContext())
  47. ctrl.registerFunctions([
  48. # cli_exit,
  49. # cli_goOn,
  50. # cli_greetUser,
  51. # cli_promptSecondItemSelection,
  52. # cli_reportMatchedItems,
  53. # cli_reportMismatchedItems,
  54. # cli_reportVictory,
  55. # cli_selectItem,
  56. # cli_showHelp,
  57. gui_generateTextureDescriptions,
  58. memory_detectMismatchedItems,
  59. memory_detectVictory,
  60. memory_generateConstPlayfield,
  61. memory_hideMatchingItems,
  62. memory_selectItem,
  63. ])
  64. def printOutput(c):
  65. if c.recentField.startswith("output"):
  66. print(c.field(c.recentField))
  67. ctrl.registerCallback(printOutput)
  68. ctrl.registerFieldCallback("exit", lambda c: sys.exit(0))
  69. ctrl.set("didLaunch", True)
  70. ctrl.set("playfieldSize", 2)
  71. ctrl.set("tileImage", "res/tiles.png")
  72. ctrl.set("tileImageCount", 3)
  73. ctrl.set("tileImageHeight", 100)
  74. ctrl.set("tileImageWidth", 75)
  75. wnd = Window()
  76. arcade.run()