UNPKG

sudoku-solve

Version:

Konni's Sudoku solving library

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