You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// console.log("The solution is: " + p[i].toString());
639
-
// if(p[i].hasSolution()) {
640
-
// console.log("Solved puzzle "+ i + ".");
641
-
// } else {
642
-
// console.log("Puzzle is unsolved.");
643
-
// }
644
-
// }
645
-
// }
646
-
647
-
/* function Puzzle(values) {
648
-
var cells[];
649
-
var guessCell;
650
-
var guessCellCandidates;
651
-
var solution; // String
652
-
653
-
this.Cell = function Cell(index, value) {
654
-
this.neighbors = [];
655
-
this.rowNeighbors = [];
656
-
this.columnNeighbors = [];
657
-
this.blockNeighbors = [];
658
-
this.candidates = [];
659
-
this.setValue = function() {}; // Set value. If value equals zero, reset candidates.
660
-
this.toString = function() {};
661
-
}
662
-
663
-
var process = function(values) {
664
-
// Perform function of grid.
665
-
// Reset cells to values.
666
-
// Process singles, hidden singles.
667
-
// Set guessCell to the index of the cell with the least number of candidates; set guessCellCandidates.
668
-
// Return each cell's value concatenated in a string.
669
-
};
670
-
671
-
var isValid = function(values) {}; // Don't count on cell values being accurate (neighbors OK). Use values from parameter.
672
-
var isFilled = function(values) { return values.indexOf("0") === -1; };
673
-
674
-
var solve = function() {
675
-
// For each string in stack push the string created by replacing the char at index guessCell.index with the candidates in guessCellCandidates. See solve above.
676
-
}
677
-
// Initialize cells.
678
-
} */
679
-
680
-
681
-
// d.cookie = 'labelWidth=' + w + '; expires=Fri, 31 Dec 9999 23:59:59 GMT"'
0 commit comments