Playable Sudoku GUI Game + AI Solver using Java Swing and Backtracking
Brief Description of the Code:
- Create a frame and a 9x9 grid of textfields for input using swing
- Create a char array of a random valid sudoku board using backtracking
- Set 36 textfields in the grid to the respective sudoku board numbers and setEditable(false)
- Create 2 buttons - Check and Ai Solve
- Check can be used when the grid is entirely filled to check if the inputted answer is correct
- Ai solve can be used to solve the sudoku using the backtracking algorithm