Exemplo n.º 1
0
void board::clear()
// Clear the entire board and all conflict tables
{
    matrix<ValueType> grid = getMatrix();
    int rows = grid.rows();
    int cols = grid.cols();
    
    for (int i = 0; i < rows; i++) {
        for (int j = 0; j < cols; j++) {
            setCell(i, j, 0);
        }
    }
    //clear conflicts hash table
    conflictsTable.clear();
    knownConflicts.clear();
}