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.

38 lines
728 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. p.print();
  11. Graphics::get().refreshScreen();
  12. std::this_thread::sleep_for(std::chrono::seconds(10));
  13. Graphics::get().finalize();
  14. std::cout << "Helper QUIT" << std::endl;
  15. }
  16. void mainL02() {
  17. Graphics::get().init("Learners Helper 02");
  18. Point p(10,10);
  19. generateSnack(&p);
  20. std::this_thread::sleep_for(std::chrono::seconds(10));
  21. Graphics::get().finalize();
  22. std::cout << "Helper QUIT" << std::endl;
  23. }
  24. int main() {
  25. mainL02();
  26. return 0;
  27. }