+ 1

Can anyone find what is problem with my coding

https://code.sololearn.com/coZImPN6J3u7/?ref=app

5th May 2022, 3:09 PM
Javvad
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!
5th May 2022, 3:48 PM
Maz
Maz - avatar
0
Can you edit it
6th May 2022, 5:12 AM
Javvad