#tight-wallaroo 176: Core Vanilla Javascript [Team Drills & Practice]#5
#tight-wallaroo 176: Core Vanilla Javascript [Team Drills & Practice]#5
Conversation
| @@ -4,14 +4,163 @@ | |||
| // | |||
| }; | ||
|
|
||
| Sudoku.prototype.isSolved = function() { | ||
|
|
| }); | ||
|
|
||
| it('recognizes a solved board as solved', function() { | ||
| xit('recognizes a solved board as solved', function() { |
There was a problem hiding this comment.
The isSolved function is empty. How does this test work with an empty function? Did you write the tests first and then plan on implementing functionality? I can appreciate that if that's the case. :)
There was a problem hiding this comment.
The tests came with the project and the ones x'd out (xit) are things that aren't yet implemented
| "eslint-plugin-standard": "^2.0.1" | ||
| }, | ||
| "scripts": { | ||
| "test": "echo \"Error: no test specified\" && exit 1" |
There was a problem hiding this comment.
You've written tests for your Sudoku code but I'm unable to test because there's no test script. How did you run your tests?
There was a problem hiding this comment.
The project is set up for running the tests by going into each exercism folder and running jasmine-node . -- it was very confusing for me, too
|
|
||
| }; | ||
|
|
||
| Sudoku.prototype.solve = function() { |
There was a problem hiding this comment.
This method solve is doing too much, and not just solving the game. It occurs to me that you might create a function along the lines of initializeBoard to create a new gameboard, takeUserInput to allow players to play the game.
| } | ||
| }) | ||
|
|
||
| //check if a space's row & column contain all numbers 1-9 already |
| let wholeBoxNine = boxNineRowOne.concat(boxNineRowTwo).concat(boxNineRowThree) | ||
| checkBox(wholeBoxNine) | ||
|
|
||
| console.log(boardArray) |
There was a problem hiding this comment.
do you need the console.log? Do they contribute to the functionality or were they just for testing purposes?
| @@ -0,0 +1,15 @@ | |||
| var Bob = function() {}; | |||
| let diamondLimit = alphabet.slice(0, alphabet.indexOf(letter)+1).split('') | ||
| let diamondArray = [] | ||
|
|
||
| // for (let i = 0; i < alphabet.length; i++) { |
No description provided.