jeudi 4 avril 2019

Is there a way to automatically populate a grid with numbers for testing a Sudoku solver? [on hold]

I am creating a Sudoku solver and was wandering if there was an easy way to populate the grid below repeatedly so I can test hundreds if not thousands of possibilities.

[0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0],                                                
[0,0,0,0,0,0,0,0,0],                                                
[0,0,0,0,0,0,0,0,0],                                                
[0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0]

Thanks

Aucun commentaire:

Enregistrer un commentaire