public bool uncover(int col, int row) { NewCell cell = findCell(col, row); if (cell != null) { return(cell.uncover()); } else { return(false); } if (col == 0 && row == 0) { return(uncover()); } else { if (col != 0) { //continue East //eastNeigbor.uncover(col - 1, row); NewCell eastNeighbor; if (neighbors.TryGetValue(Direction.E, out eastNeighbor)) { return(eastNeighbor.uncover(col - 1, row)); } else { return(false); } } else { //continue South //southNeighbor.uncover(col, row - 1); NewCell southNeighbor; if (neighbors.TryGetValue(Direction.S, out southNeighbor)) { return(southNeighbor.uncover(col, row - 1)); } else { return(false); } } } }
public bool uncover(int col, int row) { return(entry.uncover(col, row)); }