أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.
The main idea is to have a list of roles to control the puzzle and to compare user input with the correct data using any type of structure and the interface will be GUI input fields and push buttons.
see the below code :
http://www.codeproject.com/Articles/90885/Sudoku-Game-in-Java