Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

internal.h 1.5KB

5 lat temu
5 lat temu
1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*------------ -------------- -------- --- ----- --- -- - -
  2. * Libre Blackjack - internal automatic player
  3. *
  4. * Copyright (C) 2020 jeremy theler
  5. *
  6. * This file is part of Libre Blackjack.
  7. *
  8. * Libre Blackjack is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * Libre Blackjack is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with Libre Blackjack. If not, see <http://www.gnu.org/licenses/>.
  20. *------------------- ------------ ---- -------- -- - - -
  21. */
  22. #ifndef INTERNAL_H
  23. #define INTERNAL_H
  24. #include "blackjack.h"
  25. class Internal : public Player {
  26. public:
  27. Internal(Configuration &);
  28. ~Internal() { };
  29. int play(void) override;
  30. void info(Libreblackjack::Info = Libreblackjack::Info::None, int = 0, int = 0) override;
  31. private:
  32. std::string strategy_file_path{"bs.txt"};
  33. std::vector<std::vector<Libreblackjack::PlayerActionTaken>> pair;
  34. std::vector<std::vector<Libreblackjack::PlayerActionTaken>> soft;
  35. std::vector<std::vector<Libreblackjack::PlayerActionTaken>> hard;
  36. };
  37. #endif