Collecting all possible combinations on chessboard for:

  • any combination of figures
  • any size of chessboard

There was a bit of performance tunning hovewer bigger chessboards (8+) and pieces numbers (10+) might take a while to compute.