1
1

olok.cpp 461 B

12345678910111213141516171819202122
  1. #include "olok.h"
  2. Olok::Olok()
  3. {
  4. clear();
  5. }
  6. void Olok::clear()
  7. {
  8. // clear the grid to be rebuilt as empty
  9. grid.clear();
  10. // make 11 boxes for each colored row (not the white ones)
  11. for(int j = 0; j<white1; j++)
  12. {
  13. std::vector<bool> empty;
  14. grid.push_back(empty);
  15. for (int i = 0; i<CHECKBOXES; i++)
  16. {
  17. grid[j].push_back(false);
  18. }
  19. }
  20. // clear penalty count
  21. penaltyCount = 0;
  22. }