com.act365.sudoku
Class MaskState

java.lang.Object
  extended bycom.act365.sudoku.MaskState

public class MaskState
extends java.lang.Object

MaskState is broadly similar to InvulnerableState except that it calculates the state for a mask - no values are involved. Unlike the other state classes, MaskState does not implement IState.

See Also:
InvulnerableState, IState

Constructor Summary
MaskState()
           
 
Method Summary
 void addCell(int x, int y)
          Adds the cell (x,y) to the state grid.
 void setup(int boxesAcross, int boxesDown)
          Sets the state grid to the appropriate size.
 java.lang.String toString()
          Produces a string representation of the state grid.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MaskState

public MaskState()
Method Detail

setup

public void setup(int boxesAcross,
                  int boxesDown)
Sets the state grid to the appropriate size.

See Also:
IState.setup(int,int)

addCell

public void addCell(int x,
                    int y)
             throws java.lang.Exception
Adds the cell (x,y) to the state grid.

Throws:
java.lang.Exception

toString

public java.lang.String toString()
Produces a string representation of the state grid.