Reach into a linked list and rewire its next-pointers until the chain spells the target order, without orphaning a node or making it loop.
Nodes sit on a canvas connected by next-pointers. Re-point them so traversing from HEAD produces the target order. Orphaned nodes drift away and dim; a cycle flashes its arrows red. There is also a one-click Reverse for flipping the whole chain.
Pointer is a hands-on linked-list puzzle about pointers, orphaned nodes and cycles, making data structures visible.
Nodes on a canvas joined by next-pointers, re-pointed to produce a target order, is the linked list — the data structure that stores order in the connections rather than in the positions.
Orphaned nodes drifting away and dimming is not decoration. A node nothing points to is unreachable, and in a real program it is a memory leak.
Making unreachability visible is the reason this works as teaching. A pointer is hard to learn precisely because nothing on screen normally shows the difference between an object that is gone and an object you can simply no longer name.
Pointer is a hands-on linked-list puzzle about pointers, orphaned nodes and cycles. It is an original, free browser game built in-house for PlayPendium.