chessops
    Preparing search index...

    Function ray

    • Gets all squares of the rank, file or diagonal with the two squares a and b, or an empty set if they are not aligned.

      Parameters

      • a: number
      • b: number

      Returns SquareSet