12345678910111213141516171819202122 |
- #include "olok.h"
- Olok::Olok()
- {
- clear();
- }
- void Olok::clear()
- {
- // clear the grid to be rebuilt as empty
- grid.clear();
- // make 11 boxes for each colored row (not the white ones)
- for(int j = 0; j<white1; j++)
- {
- std::vector<bool> empty;
- grid.push_back(empty);
- for (int i = 0; i<CHECKBOXES; i++)
- {
- grid[j].push_back(false);
- }
- }
- // clear penalty count
- penaltyCount = 0;
- }
|