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.

36 lines
676 B

  1. #include <iostream>
  2. #include <thread>
  3. #include <chrono>
  4. #include "components/Point.h"
  5. #include "components/Snack.h"
  6. #include "input-output/Graphics.h"
  7. void mainL01() {
  8. Graphics::get().init("Learners Helper");
  9. Point p(10,10,'X');
  10. std::this_thread::sleep_for(std::chrono::seconds(10));
  11. Graphics::get().finalize();
  12. std::cout << "Helper QUIT" << std::endl;
  13. }
  14. void mainL02() {
  15. Graphics::get().init("Learners Helper 02");
  16. Point p(10,10);
  17. generateSnack(&p);
  18. std::this_thread::sleep_for(std::chrono::seconds(10));
  19. Graphics::get().finalize();
  20. std::cout << "Helper QUIT" << std::endl;
  21. }
  22. int main() {
  23. mainL02();
  24. return 0;
  25. }