Sunday, 5 July 2015

Sudoku modelling through JAVA

Concepts: Arrays, Loops, Functions, If-else
Sudoku

Sudoku (数独 sūdoku?, Digit-single) i/suːˈdoʊkuː/, originally called Number Place,[1] is a logic-based,[2][3] combinatorial[4] number- placementpuzzle. The objective is to fill a 9×9 grid with digits so that each column, each row, and each of the nine 3×3 sub-grids that compose the

grid (also called "boxes", "blocks", "regions", or "sub-squares") contains all of the digits from 1 to 9. The puzzle setter provides a partially completed grid, which typically has a unique solution.
Completed puzzles are always a type of Latin square with an additional constraint on the contents of individual regions. For example, the same single integer may not appear twice in the same 9×9 playing board row or column or in any of the nine 3×3 subregions of the 9×9 playing board.[5]
The puzzle was popularized in 1986 by the Japanese puzzle company Nikoli, under the name
Sudoku, meaning single number.[6] It became an international hit in 2005.[7]



Task:
Write a java program to model the Sodoku game.
 Create a 9 X 9 matrix inside main. Write a function or functions to check whether the solution is as per the rule.

 After that we can think of developing the Game for playing the sudoku.