โ† LessonsCREATOR PATH ยท 10โ€“12๐ŸŽฎ

Guild Union Find

LESSON 143
๐ŸŽฏ Today's missions
๐ŸŽฎ๐Ÿ‘พ๐Ÿ†
GAME DEV LAB

Guild Union Find

Players keep forming guilds, and the game server must instantly answer: "Are these two players on the same team?" Build a tracker that merges teams fast and never walks a long chain twice.

๐Ÿง  Before we start

Dynamic Route saved answers so repeated work disappeared. Today's union-find (disjoint sets) keeps groups that never overlap. Every player points to a parent, and the team leader is the player who points to themself.

๐Ÿ‘ค Own leaderโ†’๐Ÿ”Ž Findโ†’๐Ÿค Unionโ†’โšก Compress
Challenge 1 of 4Build the strategy
1

Build the tracker strategy

Arrange the four visual cards in the order a union-find tracker uses them. Everyone begins alone.

GUILD TRACKER ยท KEEP TEAMS WITHOUT OVERLAP
1 ยท START
2 ยท FIND
3 ยท UNION
4 ยท SPEED UP

๐ŸŒŸ What you learned

Come back tomorrow for another advanced visual coding adventure! โœจ