cloakfall
    Preparing search index...

    Function isValidPlacement

    • Whether a ship of this length can go from start to end: a straight horizontal or vertical line of exactly that many cells, inside the board, and not touching a ship which is already there.

      Parameters

      • board: Matrix
      • start: Point
      • end: Point
      • length: number

      Returns boolean