func New(x, y int, rowHints, colHints [][]int) (*Board, error) {
	if len(rowHints) != y {
		return nil, ErrRowMismatch
	}
	if len(colHints) != x {
		return nil, ErrColMismatch
	}
	return &Board{
		Grid:     newGrid(x, y),
		RowHints: rowHints,
		ColHints: colHints,
	}, nil
}
// New takes in the x and y size and the hints and returns a board
// an error is returned if the length of the hints does not match the grid length
New takes in the x and y size and the hints and returns a board
an error is returned if the length of the hints does not match the grid length
// New takes in the x and y size and the hints and returns a board // an error is returned if the length of the hints does not match the grid length
func New(x, y int, rowHints, colHints [][]int) (*Board, error) {
	if len(rowHints) != y {
		return nil, ErrRowMismatch
	}
	if len(colHints) != x {
		return nil, ErrColMismatch
	}
	return &Board{
		Grid:     newGrid(x, y),
		RowHints: rowHints,
		ColHints: colHints,
	}, nil
}
func New ( x , y int , rowHints , colHints [ ] [ ] int ) ( * Board , error ) { if len ( rowHints ) != y { return nil , ErrRowMismatch } if len ( colHints ) != x { return nil , ErrColMismatch } return & Board { Grid : newGrid ( x , y ) , RowHints : rowHints , ColHints : colHints , } , nil }
New takes in the x and y size and the hints and returns a board
an error is returned if the length of the hints does not match the grid length
New takes in the x and y size and the hints and returns a board an error is returned if the length of the hints does not match the grid length