org.drools.examples.sudoku
Class SudokuExample
java.lang.Object
org.drools.examples.sudoku.SudokuExample
- All Implemented Interfaces:
- ActionListener, EventListener
public class SudokuExample
- extends Object
- implements ActionListener
This example shows how Drools can be used to solve a 9x9 Sudoku Grid.
This Class hooks together the GUI and the model and allows you to
load different grids.
<pgt;
Several grids are provided via File -> Samples.
<pgt;
For loading a grid from a file, prepare a text file containing nine
text lines as shown below and select File -> Open...
<pgt;
<pre>
95
1
3 752 8
7 3 9 4
8 5 2
6 814 7
5 1
49 5 8 6
8 4 7 3
</pre>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SudokuExample
public SudokuExample()
throws Exception
- Throws:
Exception
main
public static void main(String[] args)
actionPerformed
public void actionPerformed(ActionEvent ev)
- Specified by:
actionPerformed
in interface ActionListener
Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.