Knight's tour: Difference between revisions

m
Line 6,162:
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)
# The board is stored in column-major order.
1,448

edits