February 28, 2022
In November of senior year, I added a Chick-fil-A tab to Blocks, the schedule app I built for my high school. Hereâs how that came to be.
In the year above me at Lexington High School we had Samuel Jefferson Andrews, who had amassed 2 million TikTok followers. My understanding is that, during my junior year, the Chick-fil-A in Waltham ran a competition on Instagram where you could win free Chick-fil-A sandwiches for your entire school. You commented your schoolâs name, and if you got your classmates to give you the most likes, your school would win.
Samuel Jefferson Andrews turned his TikTok audience towards his comment, and won the competition for us. But when the cards were delivered a couple months later, Covid had closed down school. Several thousand gift cards sat inside the school over the summer.
Then, in the fall of my senior year, the schoolâs social worker gave the gift cards to the former junior class president. I think it was some vague plot to have someone distribute them; at the very least, the social worker got the responsibility of distributing them off of her hands.
But not much happened, except that my friends and I got in touch with the junior class president and treated ourselves to many free Chick-fil-A sandwiches.
Then, around Thanksgiving, I realized that I could use Blocks to distribute the cards! I messaged her and asked if I could take 400 cards off her hands, and purchased hundreds of envelopes to package them:
I then built a wheel that you could spin in order to win two Chick-fil-A gift cards (I packaged 200 packs of two cards each), and put it in a secondary tab of the app. You could spin once per hour.
Screenshots from Trisha, who was the first winner and won two times. I was too dumb to remember to take screenshots of my own app.
People went crazy over this. People would wake up in the middle of the night, remember that the Chick-fil-A giveaway was happening, and spin the wheel before falling back asleep.
In the end, people spun this wheel 29,000 times over the four days it took for these cards all to run out. Of those, only 200 were winning spins. A lot of people got frustrated.
In the screenshots above, you can see a faint red dot above the âgiftâ icon at the bottom.
Thatâs a pinging red dot animation I added whenever you had the opportunity to spin the wheel. The only way to make that pinging dot go away was to do your spin for the hour. People would spin just to make the dot go away.
Probably not the best thing, but kinda fun. But it seems like something Facebook would do. Oops.
Since the giveaway is in the distant past, I can publicly reveal the algorithm for selecting winners for the first time ever.
Primary source records from the blocks-v2
codebase.
How this code works:
Youâll notice that this is a random algorithm, but not random in the way that youâd assume. There are no set odds of winning per spin.
Instead, this algorithm produces a win every 20-45 minutes, and once one winner has been chosen, no one else can win for at least 20 minutes.
I did it this way because I wasnât sure how many people would play, so I didnât know how to set the probabilities. So instead, it seemed reasonable to limit the pace of winners to 1-2 per hour.
A side effect of this method is that you have much better chances of winning if you play while everybody else is asleep and not playing. But people didnât know how the algorithm worked, so they didnât know that.
You see how the app asked for peopleâs addresses? Thatâs not because I shipped them their prizes. I decided to be frugal, and hand-delivered the envelopes to every winner in Lexington.
For that week, I made 200 deliveries to separate houses. There were days when I woke up at 5am to make deliveries before school, and then after school would package up the winners that had popped up while I was at school and deliver those too.
On the peak day, I drove and delivered to 80 different peopleâs houses in town.
It was extremely overwhelming (while also trying to keep up with normal school alongside), but it was also super fun.
I got to see parts of Lexington that Iâd never seen before. I got into the zone of making deliveries as fast as possible. And I used an app that optimized my route, so the stops were usually just a couple minutes apart.
After the week was over, I had a moment to relax. Nothing major had gone wrong. People had their brief fun, and it ended before things got stale. And best of all, people got their free chicken sandwiches.
Okay, I understand that Chick-fil-A is a morally questionable organization because they donate to anti-LGBTQ organizations. But by distributing these gift cards, I was taking money away from Chick-fil-A. I would rather see myself as the Robinhood of chicken sandwiches.