isLegal method

bool isLegal(
  1. int row,
  2. int col
)

Implementation

bool isLegal(int row, int col) {
  return !(_checkRowForDuplicates(row, col) ||
      _checkColForDuplicates(row, col) ||
      _checkBlockForDuplicates(row, col));
}