Data Pipeline Puzzle — Aritro Saha Arcade

A logic puzzle game for data engineers where you rotate pipeline segments to connect data sources to analytical sinks without pipeline deadlocks.

Game Mechanics & Rules

Inspired by enterprise streaming architectures (Kafka, Pub/Sub, Databricks), players are presented with a matrix of pipe connectors. Rotate pipe segments to establish an unbroken stream connection from source nodes to output sinks before the stream buffer overflows.

Graph Theory & Topological Connectivity Logic

Under the hood, the puzzle represents the pipe grid as a Directed Acyclic Graph (DAG) topology:

  • Adjacency Matrix Transformation: Each pipe segment has discrete port orientations (North, East, South, West). Rotating a tile performs a cyclic bit-shift on its connection ports.
  • Depth-First Search (DFS) Path Verification: Upon every rotation, the verification engine traverses connected nodes from the source emitter using recursive Depth-First Search. A level is solved only when an uninterrupted directed path reaches all active sink receptors without open-ended pipeline leakage.
  • Deadlock & Cycle Detection: The traversal checks for circular loops and deadlock dead-ends, mirroring real-world streaming pipeline validation in Apache Spark and Kafka Streams.

Features & Level Persistence

  • Level Progression: Progressively challenging grid layouts with branching streams and multi-sink targets.
  • URL Parameters: Direct level access supported via ?level=N URL parameters for bookmarking and sharing.
  • State Saving: Solved levels and progress are stored in localStorage with instant rehydration.

Controls

Click or tap any pipe tile to rotate it 90 degrees clockwise. Complete the circuit to trigger the data flow animation.

Frequently Asked Questions

How does the data pipeline validation algorithm work?

The puzzle models pipe tiles as an adjacency graph and executes Depth-First Search (DFS) to confirm an unbroken stream connection from sources to sinks.

Can I share specific puzzle levels with friends?

Yes, appending ?level=N to the URL directly loads any puzzle stage with full state persistence.