DS

Ordering technique

Back

Why order the dice?

Entropy needs one reproducible sequence. Camera "top-left" is unreliable because the view can rotate, move, or zoom.

1. Establish a frame

The most isolated accepted die is position 1. The farthest die from it defines the horizontal direction; it does not automatically become position 2. A strong off-axis die fixes which side is up.

2. Traverse the grid

The detected d6 top boxes first estimate a top-down floor layout from their shared cube geometry. No marker, known surface, previous capture, or camera calibration is used. The normalized layout is repeatedly split at its median x and y coordinates and the four resulting regions are visited in a fixed order. Nearby dice tend to stay near each other, but jumps occur where one region ends and another begins.

1234 5678 9101112 13141516

What DiceSecret guarantees

Only accepted d6 values participate. Face values never choose the order. Perspective correction is a best estimate from the current dice alone. If that fit, the anchor, the direction, or a recursive split is too ambiguous, the app asks the user to confirm or retake.

Background: recursive quadrant partitioning | projective geometry