1
1

olok.h 601 B

12345678910111213141516171819202122232425262728
  1. #ifndef OLOK
  2. #define OLOK
  3. #include <vector>
  4. #include "qwixx.h"
  5. #include <string>
  6. struct RowColor
  7. {
  8. bool direction;
  9. std::string name;
  10. int color;
  11. int xCount;
  12. int lastIndex;
  13. std::vector<bool> row;
  14. };
  15. class Olok
  16. {
  17. public:
  18. std::vector<RowColor> grid;
  19. Olok();
  20. void clear();
  21. int penaltyCount;
  22. int getXCount(int color);
  23. void addX(int color, int index);
  24. int getLastIndex(int color);
  25. void addOlok(Olok o);
  26. std::string toString(void);
  27. };
  28. #endif