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.

преди 5 години
преди 5 години
преди 5 години
преди 5 години
преди 5 години
преди 5 години
преди 5 години
преди 5 години
преди 5 години
преди 5 години
преди 5 години
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*------------ -------------- -------- --- ----- --- -- - -
  2. * Libre Blackjack - stdio 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. #include <iostream>
  23. #ifdef HAVE_LIBREADLINE
  24. #include <readline/readline.h>
  25. #include <readline/history.h>
  26. #endif
  27. #include "blackjack.h"
  28. #include "stdinout.h"
  29. StdInOut::StdInOut(void) {
  30. }
  31. void StdInOut::info(Libreblackjack::Info msg, int p1, int p2) {
  32. return;
  33. }
  34. int StdInOut::play() {
  35. std::cin >> input_buffer;
  36. // TODO: check EOF
  37. /*
  38. if (input_buffer == "hit" || input_buffer == "h") {
  39. *command = Command::Hit;
  40. } else {
  41. *command = Command::None;
  42. }
  43. */
  44. return 0;
  45. }