Vibe ChessVibe ChessApp

The opposition in chess: who has to give way

The opposition is a position in which the two kings stand on the same line with an odd number of squares between them, most often just one. Each side has a single piece to move, passing is not allowed, and the side to move is the one that loses out: it has to step aside. Almost the whole technique of pawn endings grows out of this simple mechanism - both winning with an extra pawn and saving the game without one. Below we look at direct and distant opposition, key squares, and the case where the opposition does not help at all. Every position has been calculated to the end, so the result under each diagram is the real one with best play. A related technique is the rule of the square.

What the opposition is

Put the kings on the same file with one square between them. Neither can come closer - kings may never stand next to each other - so whoever is to move must step aside and let the other king through. That is what having the opposition means: you hold it when it is not your turn to move.

87654321
abcdefgh
Kings on the d-file with d4 between them, pawn behind. The result depends only on who is to move.

Calculation gives two different results for the very same position. With White to move it is a draw: the white king has to step aside, the black king gets in front of the pawn and holds it. With Black to move White wins: now it is Black who has to give way, and the white king marches forward.

Hence the main rule of pawn endings: do not hurry with the pawn. First the king goes in front of it and takes the opposition, and only then does the pawn advance. A pawn move is very often exactly the move that hands the opposition to the opponent.

Key squares: when you no longer need the opposition

Once the stronger side's king has got in front of its pawn on the sixth rank, there is no need to count the opposition any more: the position is won whoever is to move.

87654321
abcdefgh
King on d6 in front of the d5 pawn. A win whoever is to move: White takes c7, d7 or e7.

Checked by calculation: White wins both with White to move and with Black to move. The same holds if the king stands not directly in front of the pawn but beside that square, on c6: the position is won in both cases.

In this position c7, d7 and e7 are called key squares: once the king reaches any of them, the pawn is guaranteed to promote. The practical lesson is that in a pawn ending you fight not for the opposition as such but for these squares; the opposition is only the way to get there.

Distant opposition

The kings do not have to be close. If there is an odd number of squares between them on the same line, the opposition still belongs to the side that is not to move, and as the kings approach each other it stays with that side.

87654321
abcdefgh
Kings on the e-file with six squares between them - an even number, so whoever moves takes the distant opposition. White to move wins with Kd2 or Kf2; Black to move draws with Kd7, Ke7 or Kf7.

This is the distant opposition. The only difference from the direct opposition is the distance: the mechanism is the same, it simply takes several moves before the kings meet, and all that time the parity has to be kept.

In practice this means that in a pawn ending you have to count from the very first move, not once the kings have already met. A single tempo lost early on turns the result upside down.

How to tell quickly who has the opposition

There is a trick that saves you counting squares every time. Picture a rectangle with the two kings on opposite corners. If all four corners are the same colour, the opposition belongs to the side that is not to move. If the colours differ, the opposition goes to the other side.

The rule works on a file, on a rank and on a diagonal - which is why people speak of vertical, horizontal and diagonal opposition. Counting by square colour is easier than counting squares: the colour is visible at a glance, while being off by one in a count is easy.

A convenient check is the position from the first section: kings on d3 and d5, and the corners of the rectangle are the same colour. So the opposition belongs to the side that is not to move - exactly what the calculation confirms.

When the opposition does not help: the rook pawn

There is one ending where all this technique fails: the edge pawn. Its promotion square is in the corner, and once the defending king gets there the position is a draw regardless of the opposition.

87654321
abcdefgh
Pawn on h5, king on g6 - an ideal setup with any other pawn. With a rook pawn it is a draw whoever is to move.

Calculation: a draw with White to move and with Black to move. The white king blocks its own pawn, and as soon as it gives up a square it lets the black king out. Trying to force the pawn through ends in stalemate.

So in endings with an edge pawn the defence comes down to one task - reach the corner - and the attack comes down to keeping the king out of it. More on stalemate - stalemate in chess.

How to practise the opposition

The opposition sticks through your hands, not through reading: play the same position out to the result a few times, switching who is to move, and watch how the outcome changes.

A position to practise on - king and pawn against king in the board editor. You can set up your own position in the chess board editor.

Next come pawn endings with several pawns, where breakthroughs and the outside passed pawn join the opposition - pawn endgames for beginners.

Endings are tested in a tournament

Pawn endings are best learned from real games with a record. Run a tournament where the pairings and the standings take care of themselves, and all that is left for you is to play and review your endgames.

Common questions about the opposition

What does it mean to have the opposition?

It means being in a position where your opponent is the one who has to move. The kings stand on the same line with an odd number of squares between them, neither can come closer, and the side to move is forced to give way. The side that is not to move has the opposition.

How do I tell who has the opposition?

Picture a rectangle with the two kings on opposite corners. If all four corners are the same colour, the side that is not to move has the opposition. If the corners are different colours, the opponent has it.

What is the difference between distant and direct opposition?

Only the distance between the kings. In the direct opposition there is one square between them, in the distant opposition three or five. The mechanism is the same: parity is what matters, and as the kings approach each other the opposition stays with the side that held it.

Why do you need key squares if you have the opposition?

The opposition is the means, key squares are the goal. As soon as the stronger side's king reaches the square in front of its pawn on the sixth rank, the position is won whoever is to move, and there is no need to count the opposition any more.

Why does the opposition not help with a rook pawn?

The promotion square of an edge pawn is in the corner. The defending king gets there in time and cannot be driven out: the attacking king blocks its own pawn, and any attempt to force a way through ends in stalemate. It is a draw no matter who is to move.

Three event formats in one app

The Vibe Chess app is built for an evening over the board, not for online play: it keeps the sign-up list, the pairings and the table while you deal with people and the venue. All of it free.

Swiss system

score groups, no rematches, no second bye

Round robin

everyone plays everyone, the app works out the number of rounds

Free meetup

who is free and who is already at a board is shown under Now

How the tournament runs
  1. 1Create the event and save the venue for next time
  2. 2Open sign-up, players arrive through the link
  3. 3Start the tournament and the app announces the pairings
  4. 4Keep entering results, then take the final table and the TRF file

More than a bot: the app, FIDE rules and a TRF report

  • The app. Besides the bot there is an app - inside Telegram and simply at playvibechess.com/app: what is on in your city, the player list, a live table, the current round, your profile and game history - everything that is awkward to read as chat messages.
  • Pairings by FIDE rules. Pairings are computed by bbpPairings, an open-source engine implementing the Dutch system: score groups, floats on an odd field, colour alternation, no rematches, and no player gets a bye twice.
  • A TRF report. A finished tournament exports as a single file in the FIDE data exchange format - the one arbiter software and federations accept. Your profile stores the FIDE ID, national federation code, title, sex and date of birth for it.
  • Free. All of the above, with no subscriptions, paid plans or limits on the number of tournaments and players.

Full overview

Missing a feature? Message the developers

The bot is constantly improved based on real tournaments. If you need a feature that isn't there yet, message the developers right inside the bot with the /support command. Many features appeared exactly because organizers asked for them, and useful ideas get added quickly.