Question: I ' m coding a program using JavaFX using Scene Builder, I built a Sudoku class file but I ' m still having trouble connecting
Im coding a program using JavaFX using Scene Builder, I built a Sudoku class file but Im still having trouble connecting it to an application and controller file. Im hoping the program will have a x grid where a sudoku puzzle will be generated and where the user can insert their response also a button to check once the grid is completed
to see if the puzzle is correct.
Here is the Sudoku file
public class Sudoku
int mat;
int N; number of columnsrows
int SRN; square root of N
int K; No Of missing digits
Constructor
Sudokuint N int K
this.N N;
this.K K;
Compute square root of N
Double SRNd Math.sqrtN;
SRN SRNdintValue;
mat new intNN;
Sudoku Generator
public void fillValues
Fill the diagonal of SRN x SRN matrices
fillDiagonal;
Fill remaining blocks
fillRemaining SRN;
Remove Randomly K digits to make game
removeKDigits;
Fill the diagonal SRN number of SRN x SRN matrices
void fillDiagonal
for int i ; iij
fillBoxi i;
Returns false if given x block contains num.
boolean unUsedInBoxint rowStart, int colStart, int num
for int i ; i
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
