Skip to content

Commit

Permalink
fix tests - Version 0.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
icecream17 committed Jun 3, 2021
1 parent be03f35 commit 703561b
Show file tree
Hide file tree
Showing 13 changed files with 449 additions and 393 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "solver",
"version": "0.7.2",
"version": "0.7.3",
"private": true,
"homepage": "https://icecream17.github.io/solver",
"dependencies": {
Expand Down
20 changes: 20 additions & 0 deletions src/Api/PureSudoku.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,26 @@ export default class PureSudoku {
}) as InstanceType<T>
}

/**
* Currently for debugging
*/
_to81() {
let str = ""
for (const row of this.data) {
for (const cell of row) {
if (cell.length === 1) {
str += cell[0]
} else if (cell.length === 0) {
str += "0"
} else {
str += "."
}
}
str += "\n"
}
return str
}

/**
* Imports from an 81 character string representing a sudoku.
*
Expand Down
2 changes: 1 addition & 1 deletion src/Api/Solver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import SolverPart from "../Elems/AsideElems/SolverPart"
import StrategyItem from "../Elems/AsideElems/StrategyItem"
import { IndexToNine } from "../Types"
import { forComponentsToUpdate } from "../utils"
import Strategies from "./Strategies"
import Strategies from "./Strategies/Strategies"
import Sudoku from "./Sudoku"

export default class Solver {
Expand Down
314 changes: 0 additions & 314 deletions src/Api/Strategies.ts

This file was deleted.

0 comments on commit 703561b

Please sign in to comment.