UNPKG

sudoku-solve

Version:

Konni's Sudoku solving library

19 lines (18 loc) 620 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RemovedNumbers = void 0; const CommonFunctions_1 = require("./CommonFunctions"); class RemovedNumbers { constructor(rule, row, col, numbers) { this.rule = rule; this.row = row; this.col = col; this.index = CommonFunctions_1.index(row, col); this.box = CommonFunctions_1.boxFromRowCol(row, col); this.numbers = numbers; } toString() { return `${this.rule} row: ${this.row}, col: ${this.col}, removed: ${this.numbers}`; } } exports.RemovedNumbers = RemovedNumbers;