Flood-It solver written for the ASP system telingo.
Run the following command:
./create-instance [NUMBER_OF_ROWS] [NUMBER_OF_COLORS]
For example
./create-instance 12 4
would create the file ./instances/flood-it-board-12x12-4.lp.
Install telingo, change to the directory of the downloaded flood-it-solver and then type (all via command line):
telingo floodit.lp instances/flood-it-board-12x12-4.lp 1 --stats
To see a rudimentary visualization of the first found solution run the following command (works only with python 3.x):
python visualize.py [INSTANCE_FILE]
For example:
python visualize.py instances/flood-it-board-12x12-4.lp