Exemplo n.º 1
0
 public GameState(CellState[][] cells, HintSet rowHints, HintSet columnHints, int targetRow = 0)
 {
     this.cells       = cells;
     this.rowHints    = rowHints;
     this.columnHints = columnHints;
     this.targetRow   = targetRow;
 }
Exemplo n.º 2
0
        public GameState(Puzzle puzzle)
        {
            this.rowHints    = puzzle.HintSets[1];
            this.columnHints = puzzle.HintSets[0];

            this.cells = new CellState[rowHints.Length][];

            for (int i = 0; i < rowHints.Length; i++)
            {
                cells[i] = new CellState[columnHints.Length];
                for (int j = 0; j < columnHints.Length; j++)
                {
                    cells[i][j] = CellState.Blank;
                }
            }
        }