← Tan Nguyen

2048, but the tiles are the org chart

2022-08-15

During a hack week at Datadog, I scraped the company org chart from Workday and turned it into 2048. Every tile is a person. Merge two of the same and you get their manager. Keep going and you climb the chart until you reach the top.

The version below uses job titles instead of real people.

·

Click the board, then use the arrow keys. On a phone, swipe.

How it works

The original was a React app. Each tile value (2, 4, 8, … 2048) maps to a person, and the map comes from the scraped chart. To move a row, take its tiles starting from the side you’re moving toward, merge two neighbours with the same value (once per tile per move), then pack the rest against the edge. The slide is a CSS transition on each tile’s position, and the merge happens after the slide ends.

This page is a rewrite of that in about 130 lines of plain JavaScript: game2048.js.