How to beat the Barry Attack
Castle, then hit the centre with ...c5 and develop your knight to c6. If you dislike the sharp lines, play ...d6 instead of ...d5 and you are in a calm Pirc.
What they are after
White develops quickly with Nc3, Bf4 and e3, plans Ne5, Qd2 and long castling, then pushes the h pawn at your fianchettoed king. The setup is easy to play on autopilot, which is exactly why a central strike in the first ten moves hurts it so much: the knight on c3 blocks the c pawn and White has no quick way to support d4.
The answers
Counter in the centre with ...c5
The plan
Your best reply to a flank attack is a central strike. ...c5 attacks d4, and after Ne5 cxd4 exd4 Nc6 you trade off White’s strongest knight. The open c file and pressure on d4 give you play before White’s attack starts.
Your chance
With White’s king still in the centre, the long diagonal of your bishop on g7 can become deadly once the d4 pawn falls.
Watch out
Leaving the knight on e5 alone lets White play h4 and h5 with real threats. Trade it or challenge it quickly.
Sidestep with ...d6
The plan
If you play ...d6 instead of ...d5, the bishop on f4 has nothing to hit and White’s Barry plan disappears. You reach a Pirc where you know the ideas: ...O-O, ...c6, ...Nbd7 and ...e5.
Your chance
Many Barry players are not ready for this move order and drift into a passive setup.
Watch out
The Pirc gives White space with e4; play ...c6 and ...e5 in time so you don’t get squeezed.