+ 1
Can anyone find what is problem with my coding
2 Answers
+ 2
1. var row = [[...newBoard][y]] is the way to go, you want to first get the array and then the "y" value
2. some typos in validBoard(), it should be: return rowsGood(board) && columnsGood(board)&& boxesGood(board)
3. In the keepOnlyValid() function you call the filter() method which inside contains the validBoard() function which inside contains three other functions which inside all of them have some function calling causing the "Maximum call stack size exceeded" error
For more info on the last one: https://stackoverflow.com/questions/6095530/maximum-call-stack-size-exceeded-error
GL!
0
Can you edit it