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

main.cpp 2.6KB

3ヶ月前
4ヶ月前
4ヶ月前
3ヶ月前
3ヶ月前
3ヶ月前
3ヶ月前
3ヶ月前
3ヶ月前
4ヶ月前
4ヶ月前
4ヶ月前
4ヶ月前
4ヶ月前
4ヶ月前
4ヶ月前
4ヶ月前
4ヶ月前
4ヶ月前
4ヶ月前
4ヶ月前
4ヶ月前
4ヶ月前
3ヶ月前
3ヶ月前
4ヶ月前
4ヶ月前
4ヶ月前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. #include <iostream>
  2. #include <string>
  3. #include <vector>
  4. #include "ctx_test2.h"
  5. #include "main.h"
  6. #include "memory_Context.h"
  7. int main() {
  8. std::cout
  9. << test_ctx_Controller_executeFunctions_registerFunction_set()
  10. << std::endl
  11. << test_ctx_Controller_processQueue()
  12. << std::endl
  13. << test_ctx_Controller_registerFieldCallback_match()
  14. << std::endl
  15. << test_ctx_Controller_registerFieldCallback_mismatch()
  16. << std::endl
  17. << test_memory_Context_field()
  18. << std::endl
  19. << test_memory_Context_setField()
  20. << std::endl
  21. << llm_test_isDigit_digit()
  22. << std::endl
  23. << llm_test_isDigit_notDigit()
  24. << std::endl
  25. << llm_test_strToInt()
  26. << std::endl
  27. ;
  28. std::cout
  29. << memory_test_detectMismatchedItems()
  30. << std::endl
  31. << memory_test_detectMismatchedItems_itemTwice()
  32. << std::endl
  33. << memory_test_detectVictory()
  34. << std::endl
  35. << memory_test_generateConstPlayfield()
  36. << std::endl
  37. << memory_test_hideMatchingItems()
  38. << std::endl
  39. << memory_test_selectItem_1x()
  40. << std::endl
  41. << memory_test_selectItem_2x()
  42. << std::endl
  43. << memory_test_selectItem_3x()
  44. << std::endl
  45. ;
  46. std::cout
  47. << cli_test_exit_e()
  48. << std::endl
  49. << cli_test_exit_exit()
  50. << std::endl
  51. << cli_test_exit_victory()
  52. << std::endl
  53. << cli_test_exit_q()
  54. << std::endl
  55. << cli_test_exit_quit()
  56. << std::endl
  57. << cli_test_goOn()
  58. << std::endl
  59. << cli_test_greetUser()
  60. << std::endl
  61. << cli_test_showHelp_h()
  62. << std::endl
  63. << cli_test_showHelp_help()
  64. << std::endl
  65. << cli_test_selectItem()
  66. << std::endl
  67. << cli_test_promptSecondItemSelection()
  68. << std::endl
  69. << cli_test_reportMatchedItems()
  70. << std::endl
  71. << cli_test_reportMismatchedItems()
  72. << std::endl
  73. << cli_test_reportVictory()
  74. << std::endl
  75. ;
  76. ctx_Controller<memory_Context> ctrl(memory_createContext());
  77. ctrl.registerFunctions({
  78. cli_exit,
  79. cli_goOn,
  80. cli_greetUser,
  81. cli_promptSecondItemSelection,
  82. cli_reportMatchedItems,
  83. cli_reportMismatchedItems,
  84. cli_reportVictory,
  85. cli_selectItem,
  86. cli_showHelp,
  87. memory_detectMismatchedItems,
  88. memory_detectVictory,
  89. memory_generateConstPlayfield,
  90. memory_hideMatchingItems,
  91. memory_selectItem,
  92. });
  93. /*
  94. auto c = shell_createContext();
  95. c.cCLI = cli_createContext();
  96. c = shell_launch(c);
  97. std::cout << c.output << std::endl;
  98. while (true) {
  99. std::string line;
  100. getline(std::cin, line);
  101. c.input = line;
  102. c = shell_processInput(c);
  103. if (c.exit) {
  104. break;
  105. }
  106. std::cout << c.output << std::endl;
  107. }
  108. */
  109. }