Board size
int n = 4 ; char board [ ] [ ] = new char [ n ] [ n ] ; for ( int i = 0 ; i < n ; i ++ ) { for ( int j = 0 ; j < n ; j ++ ) { board [ i ] [ j ] = ' ▁ ' ; } } int rowmask = 0 , ldmask = 0 , rdmask = 0 ; int row = 0 ; NQueenSolution solution = new NQueenSolution ( ) ;