25,161
edits
Changes
no edit summary
</pre>
At the beginning we can assume that bk_dist is equal to rk_dist, but there is a better idea, taking into account the relevance of a [[DiagonalDiagonals|diagonal]]. To apply it, we need two tables numbering the diagonals and [[Anti-Diagonals|anti-diagonals]].
<pre>
int diag_nw[64] = {