Mission progress
0 / 10 complete
Lesson 27.5Bonus Chapter 27Lesson 27.6
Bonus chapter · global constraints · rank clues

Complete Latin Squares from Ranked Line Numbers

Fill each row and column without repeats, read every line in both directions, sort the resulting numerals, and use perimeter ranks as clues. A single edge clue can describe an entire directional number.

Latin squares4-direction readingnumerical ranksconstraint propagationworked examples
Your work is stored in this browser.

What are you trying to fill?

Your puzzle is a blank 4×4 grid. Put 1, 2, 3, and 4 once in every row and every column. Read each row and column from both ends. The resulting 16 four-digit numbers must all be different, and their order from smallest to largest must match the ranks outside the grid.

Your blank four by four ranked-number puzzleSixteen empty cells. Top ranks from left to right: 9, 8, 16, 1. Right ranks from top to bottom: 3, 7, 14, 10. Bottom ranks from left to right: 15, 2, 5, 12. Left ranks from top to bottom: 11, 4, 6, 13. Each arrow reads inward.9 ↓8 ↓16 ↓1 ↓← 3← 7← 14← 10↑ 15↑ 2↑ 5↑ 1211 →4 →6 →13 →

First, learn what a rank means. Reading the row 1 · 3 · 2 · 4 from the left makes 1324; from the right it makes 4231. The digits form one number, rather than being added.

In a separate three-number practice list, 1324 < 2143 < 3412. Their ranks are 1st, 2nd, and 3rd. In the real puzzle, a rank is the position in the list of all 16 directional numbers. An outside “9” means “this whole line-number is ninth smallest”; you do not write 9 in a cell.

  1. Learn the rules: Mission 1 checks rows and columns. Missions 2–4 use a completed 6×6 teaching model to practise reading and ranking.
  2. Learn to fill: Missions 5–6 show how the outside clues force the boundary and then the interior of the 4×4 puzzle.
  3. Rebuild it yourself: Mission 7 gives you the blank 4×4 puzzle. Its ranks run from 1 to 16.
The puzzle engine

Two checks for your completed grid

each symbol appears once in every row and every column
4 rows × 2 directions + 4 columns × 2 directions = 16 line-numbers
sort those 16 numbers from least to greatest → assign ranks 1 through 16

Your solve loop

1. Read the arrow direction. 2. Build the full numeral. 3. Compare digits from left to right. 4. translate rank bands into edge digits. 5. use the Latin rule to finish the interior.

Important: a rank clue does not name one cell. It gives the position of an entire row-or-column numeral in one common sorted list.
1
Foundation

Recognize a Latin square

Not complete

In an n × n Latin square, each row and each column contains every permitted symbol exactly once. Diagonals do not have to contain every symbol unless the puzzle says so.

Choose the only Latin square.
2
Read along an arrow

Turn a row or column into one numeral

Not complete
Completed teaching model: 6×6. You are not filling this grid. Choose a row or column and read it in the arrow’s direction. Its six digits make one six-digit number; the same method will work with four digits in your own puzzle.

Completed 6 × 6 teaching model

Choose a line and direction. The highlighted first cell becomes the highest place value.

Line reader

354612
Four reading families: rows left→right, rows right→left, columns top→bottom, and columns bottom→top.
Read two original lines.
3
Worked example 5

Audit the 6 × 6 Latin square and all 24 line numerals

Not complete
Count the readings in the teaching model. There are six rows to read from each side and six columns to read from each end: four groups of six, making 24 numbers. This is why this model has ranks 1–24, while your 4×4 puzzle has ranks 1–16.

Latin audit

Why there are 24 numerals

6 + 6 + 6 + 6 = 24
Rows, left→right6
Rows, right→left6
Columns, down6
Columns, up6

Not every Latin square has distinct directional numerals. This original square has all 24 different. That makes the ranks 1 through 24 unambiguous.

original structure check
4
Sort and rank globally

Match every original arrow to its place in the ordered list

Not complete
Give each whole number a rank. Collect all 24 numbers from the completed 6×6 model and sort them in one list. Click an outside rank to connect its arrow, the line it reads, and its place in that list.

Click any perimeter rank. The board highlights the line read by that arrow, then the inspector locates its numeral in the common sorted list.

Selected arrow

Rank11
Directionrow 1 →
Numeral354612
First digit3
345126
<
354612

Compare digits from the left. The first unequal digit decides the order.

All 24 numerals

RankNumeralRead from
original rank check
5
A powerful rank shortcut

Translate rank bands into first digits

Not complete
Now return to your 4×4 puzzle. The outside rank can tell us the first digit of a line before we know the other three. The explanation below shows why each starting digit occupies a group of four ranks. Use this to fill boundary cells; it does not yet determine every interior cell.
Why each band has four ranks: every digit appears once on the top edge, bottom edge, left edge, and right edge of a Latin square. Therefore exactly four directional numerals begin with each digit.
Ranks 9–12 begin with 3.

Decode the 4 × 4 practice boundary

The sixteen rank clues make sixteen first-digit predictions. The four corner cells are predicted twice, so twelve distinct boundary cells are fixed.

Practice rank bands

1–4begin with 1
5–8begin with 2
9–12begin with 3
13–16begin with 4

For these symbols 1–4 (or 1–6) and distinct directional numerals, a rank tells the first digit immediately. Later digits are used only to order numerals inside the same band.

Band decoding check
6
Constraint propagation

Finish the four interior cells with the Latin rule

Not complete
Use what the boundary has forced. Once the edge cells are known, each interior cell must fit both its row and its column. Reveal one deduction at a time, then explain the four center entries in the checkpoint.

Boundary after rank-band decoding

One-cell-at-a-time reasoning

Use intersections: a blank cell must satisfy both its row’s missing set and its column’s missing set.
Enter the 2 × 2 center in row order.
7
original Practice 5

Solve the complete 4 × 4 ranked Latin square

Not complete
Your turn: rebuild the 4×4 solution. Use digits 1–4 once in every row and column, make all 16 directional numbers different, and match every outside rank. Begin with the rank bands, then use the missing digits in each row and column. The greatest rank on this board is 16.
Filled cells0 / 16
Partial Latin checkReady
Distinct boundary cells correct0 / 12 cells
Rank clues matched

Current hint

No hint used yet. Try translating each rank into its first digit.

Condition checklist

digits 1–4one of each per rowone of each per column16 distinct line numeralsall perimeter ranks match
8
Added exact audit

Verify uniqueness and inspect the sixteen ranked numerals

Not complete

The worked example prints one completed square. This added audit checks every 4 × 4 Latin square using the symbols 1 through 4 and asks how many satisfy all sixteen perimeter ranks.

Latin squares checked
Squares matching all clues
Greatest valid rank16
Selected numeral

Reference square

Run the audit to reveal the unique matching construction.

Sorted list

RankNumeralRead from
Exact-audit check
9
Independent workshop

Audit your ranked-Latin-square toolkit

Not complete
1. A Latin square checks…
2. A 6 × 6 square produces how many directional numerals?
3. original row 5 read right-to-left is…
4. original rank 18 is…
5. How many directional numerals begin with each digit?
6. In the 4 × 4 practice, rank 14 begins with…
7. The greatest practice rank is…
8. The practice center, read left to right across row 2, then row 3, is… (enter four digits, together or separated by commas).
Score: 0 / 8
10
Exit ticket

Connect the local and global constraints

Not complete
1. A 6 × 6 ranked square has how many line numerals?
2. In the worked example list, rank 6 is…
3. In a 4 × 4 puzzle, rank 10 begins with…
4. The completed practice top row, read left to right, is… (enter four digits).
5. How many 4 × 4 Latin squares match all original practice clues?
Score: 0 / 5