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.

26 lines
577 B

  1. #pragma once
  2. #include <string>
  3. #include <vector>
  4. #include "Controller.h"
  5. #include "../components/Snake.h"
  6. #include "../input-output/Player.h"
  7. class SnakeGame{
  8. private:
  9. const std::string game_name_ = "Snake Game for C++ Course";
  10. std::vector<Player> players_;
  11. uint32_t high_score_ = 0;
  12. std::string best_player_ = "None";
  13. void play(const std::string& name);
  14. void addPlayer(const std::string& name);
  15. public:
  16. uint32_t getHighScore() const;
  17. const std::string& getBestPlayer() const;
  18. void printGameStatistics() const;
  19. void play();
  20. };