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.

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