How to Build an Opening Repertoire

A repertoire is a tree, and its size follows from two decisions. How to choose your moves, which replies to answer, how deep to go, and when to stop.

Ask how big an opening repertoire should be and you will get a number: fifty lines, three hundred, "as much as you can remember". The numbers disagree because size is not something you choose. It falls out of two other decisions, and once those are made the repertoire is as big as it is.

A repertoire is a tree with two kinds of move

Write a repertoire down and it is a tree. At every position where it is your turn, there is exactly one move: yours. At every position where it is the opponent's turn, there are several, because you do not get to pick.

That asymmetry is the whole subject. Your moves cost nothing in size; one position, one answer. Every opponent reply you decide to prepare for is a new branch, with its own replies further down. So the size of a repertoire is set by two things only: how many opponent replies you answer at each turn, and how many moves deep you follow each line. Width and depth. Everything below is about choosing your moves well and then setting those two honestly.

Choosing your own move

Take a position from the Caro-Kann Defence, after White has chosen a quiet exchange line:

After 1.e4 c6 2.Nf3 d5 3.exd5 cxd5 4.d4, Black to move. Three developing moves, all sound, and the repertoire has room for one. — rnbqkbnr/pp2pppp/8/3p4/3P4/5N2/PPP2PPP/RNBQKB1R b KQkq - 0 4

There are three sources of evidence for a choice like this, and they answer different questions.

The engine tells you whether a move is sound. Here it separates 4...Nc6, 4...Nf6 and 4...Bg4 by about a tenth of a pawn, which is to say it does not separate them. That is the normal case in a healthy opening. The engine is a filter for bad moves, and it has little to say about good ones.

Popularity tells you where the theory and the model games are. In about 123,000 games between players rated 2000 and above, 4...Nc6 was chosen in 52%, 4...Nf6 in 26% and 4...Bg4 in 13%. A popular move is easier to study, because more strong players have shown what to do next.

Results tell you how the move has worked for people, which is not the same as how good it is. In those games Black won 49% with 4...Nc6 and 46% with 4...Bg4, while White's wins went from 43% to 47%. A few points are not much, but when the engine cannot split two moves, it is a fair tiebreak.

There is a fourth consideration that no table shows: whether the move fits what you already play. If 4...Nc6 leads to the same pawn structure and the same piece placement as your other Caro-Kann lines, it costs you almost nothing to learn. A move that scores a point better and takes you somewhere unfamiliar is usually the worse choice.

So the order is: discard what the engine dislikes, then prefer the move that fits your other lines, and let popularity and results decide between what is left. Here that is 4...Nc6: the most played, the best results, and nothing in the engine's verdict against it.

Width: which replies to answer

Now it is the opponent's turn, and the question changes from "which move" to "how many".

You cannot answer everything. In almost any opening position there are a dozen legal replies that somebody has played. But replies are not evenly spread. A few of them account for most games, and then there is a long tail of moves you will meet once a year.

So answer them in order of frequency, and stop when the replies you have covered add up to a set share of the games. That share is the real measure of width. A repertoire that answers the replies making up 90% of games at each turn is wide. One that answers 70% is narrow. Neither is wrong, but they are very different amounts of work, and the difference compounds at every move.

Two refinements make this practical.

Cover more early and less later. The first two or three opponent moves are positions you will reach in nearly every game, so a high target there is cheap and pays constantly. Ten moves in, each position is one you reach rarely, and the same target costs far more for far less.

And measure against players like your opponents. What a grandmaster plays on move six is not what you will face at the club. If your source of games lets you set a rating floor, set it near your own level, not as high as it will go.

Depth: where to stop a line

Depth has a simpler rule and a harder discipline. Stop a line when you reach a position you understand well enough to play without notes: you know where the pieces go, which pawn break you want, and what the opponent is trying to do. For most lines at club level that is somewhere around move eight to ten.

The discipline is not going further because the moves are there. A line memorised to move eighteen that you reach twice a year has cost you the time to learn three lines to move eight that you reach every week. How to Practice Chess Openings makes the same point about study time: wider before deeper.

One exception. A sharp, forcing line, where a single wrong move loses, has to be known to the end of the forcing part, however deep that is. Those are rare, and you will know them when you meet them, usually by losing to one.

So how big?

Now the question has an answer you can work out. Choose a coverage share and a depth, build the tree, and count.

For a first repertoire, set both low on purpose. About twenty lines, seven or eight moves deep, is a size you can learn in a week or two and still recall a month later, and it will already cover the positions you reach most often. That figure is a judgement and not a law. What is not a judgement is the direction: start small, play games, and widen where your games show a gap. A repertoire of three hundred lines that you built in an afternoon and never learned is smaller, in every way that matters, than twenty you know.

Doing it in Chess Genie

The repertoire builder is this method with the counting done for you. You can build the tree by hand, one decision at a time, or have it generated and then edit the result.

1. Create the repertoire and set its size

Name it, choose your colour, and optionally type the moves it starts from, so that a Caro-Kann repertoire begins after 1.e4 c6 and not at move one. The two size decisions are right there: Coverage target is width, Max depth is depth, counted in half-moves.

The New repertoire form, with fields for name, side, minimum rating and starting moves, a coverage target of 80 and a maximum depth of 20 plies, and the Let the machine build it option ticked.
Width and depth as two fields. Minimum rating sets whose games the reply shares are counted from.

If you already keep a repertoire somewhere else, as a study, a database file or lines from a course, you do not have to start again. Press the three dots on the repertoire's card and choose Import PGN.

A repertoire card for the Caro-Kann Defense with its extra actions open, showing Import PGN first in a row with Report, Export PGN, Share and Delete.
The three dots at the top right open the second row.

It takes a pasted PGN, variations included, and shows a preview of what it would add before you commit it. The imported lines become the tree, and the rest of this section then works on them: the coverage panel shows which opponent replies your existing file never answered.

2. Choose your moves with the evidence beside them

When it is your turn, the builder lists the candidate moves with the engine's evaluation, the share of games, the number of games and the results, and you can sort by any of them.

The interactive builder showing the Caro-Kann position after 4.d4 with a list of candidate moves for Black, each with an engine evaluation, its share of games, a game count and a bar of results.
The position from the example. Every number quoted above is on this screen.

Video: Build a repertoire move by move in Chess Genie

Once you have chosen, the builder moves on by itself to the opponent replies that need an answer, taking the likeliest branches before the deeper sidelines.

3. Watch the coverage, not the move count

Open the tree and a coverage panel sits under it. It shows the target at the current move and how much of what opponents play is represented, ignored or still uncovered.

The builder with the repertoire tree open on the left and a coverage panel beneath it reading Target 90 percent at move 3, required replies cover 92.3 percent of 86,208 games.
At this move the target is 90%, and the replies the builder asks you to answer make up 92.3% of the games.

This is the number that tells you whether the repertoire is finished at a given turn. A reply you have decided not to prepare can be marked as ignored, so it stops being asked for and is counted as a choice instead of a gap.

Details opens the same count for every move of the repertoire at once.

The coverage panel with Details open, listing coverage by move from move 1 at 100.0% of 91.0% down to move 10 at 57.0% of 4.4%, each against a target of 90%, and three required replies at the current position: d4, Ne5 and Bb5+.
One row for each opponent move. Green is answered, red is still open, and the gaps grow with depth.

Fix the gaps nearest the top first: those are the positions you reach most often.

4. Tune width by move

In the builder's settings you can change the coverage target later, and set it move by move: 90, 80 asks for 90% of replies at the opponent's first move and 80% from then on.

The builder settings panel with fields for minimum rating, engine depth, next branch order, coverage target, maximum depth and coverage by move.

5. Or let it be generated

Tick Let the machine build it on the new-repertoire form and the whole tree is built in one run: your moves chosen by the engine, the opponent's replies covered to your target. Lines to learn caps the size, and when the cap bites, the rarer replies are dropped first. Four sliders weigh the same things as the section on choosing a move: engine evaluation, results, popularity and how much the lines reuse the same setups.

Video: Let Chess Genie build your repertoire

Where the generator cannot find a move it can stand behind, it stops the line and lists it as unfinished, for you to fill in by hand.

6. Or have it copy a player

The generator can also take its moves from a person. Under Imitate a player on the same form, name a Lichess or chess.com account, or upload a PGN file of someone's games. Wherever those games show what the player does in a position, the repertoire makes the same move. Where they run out, the engine and the game statistics fill in as before.

The Imitate a player section of the new-repertoire form, with a Source menu set to a Lichess or chess.com account, a Platform menu, a Username field with a Check button, and an Add another player button.

There are two good uses for it.

The first player to copy is you. Enter your own username and the result is your actual repertoire, written down: the moves you already play, with the gaps filled in around them. That is the "fits what you already play" test from earlier, applied to every position at once, and it is a quicker start than an empty tree.

The second is a player who is good at the opening you want and plays the way you like to play. Their choices come with a style attached, which an engine's choices do not, and you get a repertoire whose lines belong together.

A copied move is still checked. One the engine rates below the limit you set is refused, and the report at the end lists every position where that happened. You get the player's preferences, minus the moves that fail that check.

A generated repertoire is a starting point. Open it in the builder and change any move you would not play: a tree you chose is easier to remember than one you were handed.

What it costs

Building by hand is free. A free account can also generate one repertoire a week, up to 20 lines and 15 half-moves deep, which is the first-repertoire size suggested above. Tier 1, at €5 a month or €50 a year, generates daily, up to 2,000 lines, and analyses at engine depth 25 where a free account gets 15.

All articles