Payam, this is a good puzzle, but the code in the template and the test suite gives away the answer. I suggest removing the code from the template and checking the validity of the answer by applying the rules to rows, columns, and 3x3 squares.
2404 Solvers
201 Solvers
324 Solvers
Replace every 3rd element in a vector with 4
170 Solvers
27 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!