by anitil · 1mo ago · 0 comments
You still need to get the backtracking correct and there's some minor tricks to work out, but that'll get you up to n=8 working quite well.
The model (8 different digits representing row in that column) no queen was in the same row or column, by construction. So only the diagonal test remains.