Class HanjieBuilder

  extended by smithers.logicpuzzles.HanjieBuilder

public class HanjieBuilder
extends java.lang.Object

Creates hanjie puzzles from image files.

Method Summary
static void main(java.lang.String[] args)
          Creates a new hanjie puzzle based on an image file.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail


public static void main(java.lang.String[] args)
Creates a new hanjie puzzle based on an image file. This should be called with a single argument, the name of the file. The puzzle will then be written to System.out. This will only handle images with up to 26 colours plus blank. Each pixel of the image is taken to be a cell in the puzzle. Blank must be pure white, and colours are considered equal iff they are exactly equal, so lossy image formats (such as JPEG) are not practical.

args - the arguments, of which the first should be the name of an image file