Knight's tour: Difference between revisions
Content added Content deleted
Line 6,162: | Line 6,162: | ||
end |
end |
||
# Note that the i,j order here is in mathematician’s matrix |
|||
# notation, not chess ‘algebraic notation’. Thus square b3 is |
|||
# written square(5,2). |
|||
public square(i, j) |
public square(i, j) |
||
# The board is stored in column-major order. |
# The board is stored in column-major order. |