cloakfall
    Preparing search index...

    Function generateStartEnd

    • Pick a start and end point for a ship of the given length, at random from every placement that fits. Throws if no placement fits, rather than searching forever.

      Parameters

      • matrix: Matrix
      • shipLength: number

      Returns [Point, Point]