Comment

Comment by snappy173

  addEventListener("beforeboarding", function() {
    if(booked > capacity) {
      let price = ticket.faceValue;
      let ticketsToBuy = booked - capacity;
      while (ticketsToBuy > 0) {
        if (offerToBuyBackTicket(price)) {
          ticketsToBuy--;
        } else {
          price++;
        }

        //if (price > limit) {
        //  callInPinkertonThugs();
        //  return;
        //}
      }
    }
  }
parent snappy173 9 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton