ChessWorld.net - Play Online Chess

Vienna Game Hamppe-Allgaier Gambit: 6.Ng5 and Nxf7

The Hamppe-Allgaier Gambit begins 1.e4 e5 2.Nc3 Nc6 3.f4 exf4 4.Nf3 g5 5.h4 g4 6.Ng5. After 6...h6 7.Nxf7 Kxf7, White sacrifices a knight to drag Black's king into the open.

It resembles the King's Gambit Allgaier, but the Vienna move order includes Black's knight on c6, so White cannot simply copy Kieseritzky-style Ne5 ideas.

Quick verdict

  • For White: Nxf7 is a time sacrifice. Open lines with Bc4+, d4 and Bxf4 before Black consolidates.
  • For Black: ...d5, ...Nf6 and accurate king placement are the practical defensive anchors.
  • Memory hook: Hamppe-Allgaier = Ng5, Nxf7, exposed king, then centre-first attack.

Hamppe-Allgaier Adviser

Choose your study problem. The adviser gives a plan and selects a matching supplied model game.

Hamppe-Allgaier diagrams

These diagrams use python-chess validated FENs. Each card includes the exact move sequence that reaches the position.

Hamppe-Allgaier Gambit Starter

White jumps to g5 rather than retreating. The knight eyes f7 and invites Black to accept a wild sacrifice.

Example sequence: 1.e4 e5 2.Nc3 Nc6 3.f4 exf4 4.Nf3 g5 5.h4 g4 6.Ng5

Allgaier Sacrifice: 6...h6 7.Nxf7

White sacrifices the knight on f7 to drag Black's king forward and create attacking chances.

Example sequence: 1.e4 e5 2.Nc3 Nc6 3.f4 exf4 4.Nf3 g5 5.h4 g4 6.Ng5 h6 7.Nxf7

King Dragged Out: 7...Kxf7

Black accepts the knight and exposes the king. White must now prove compensation with speed.

Example sequence: 1.e4 e5 2.Nc3 Nc6 3.f4 exf4 4.Nf3 g5 5.h4 g4 6.Ng5 h6 7.Nxf7 Kxf7

Bc4+ Check

White's bishop check is the most natural way to punish the exposed king after the knight sacrifice.

Example sequence: 1.e4 e5 2.Nc3 Nc6 3.f4 exf4 4.Nf3 g5 5.h4 g4 6.Ng5 h6 7.Nxf7 Kxf7 8.Bc4+

Central Break: d4

White often follows the sacrifice with d4, trying to open central files before Black consolidates.

Example sequence: 1.e4 e5 2.Nc3 Nc6 3.f4 exf4 4.Nf3 g5 5.h4 g4 6.Ng5 h6 7.Nxf7 Kxf7 8.d4

Recovering on f4

Bxf4 develops with tempo, recovers a pawn and helps White keep pressure on Black's exposed king.

Example sequence: 1.e4 e5 2.Nc3 Nc6 3.f4 exf4 4.Nf3 g5 5.h4 g4 6.Ng5 h6 7.Nxf7 Kxf7 8.d4 Nf6 9.Bxf4

Long-Castle Attack

A thematic White dream: castle long, use the rook on g1 and attack a king that has already moved.

Example sequence: 1.e4 e5 2.Nc3 Nc6 3.f4 exf4 4.Nf3 g5 5.h4 g4 6.Ng5 h6 7.Nxf7 Kxf7 8.d4 f3 9.Bc4+ d5 10.Bxd5+ Kg7 11.gxf3 Bb4 12.Be3 Nf6 13.Bc4 Qe7 14.Qe2 gxf3 15.Qxf3 Bg4 16.Rg1 h5 17.e5 Nxe5 18.dxe5 Qxe5 19.O-O-O

Black's Thematic ...d5

Black often uses ...d5 to give back some material, block the bishop and seize central control.

Example sequence: 1.e4 e5 2.Nc3 Nc6 3.f4 exf4 4.Nf3 g5 5.h4 g4 6.Ng5 h6 7.Nxf7 Kxf7 8.Bc4+ d5

Alternative: 6...Nh6

Black can avoid the immediate ...h6 Nxf7 structure with ...Nh6, but the game remains sharp.

Example sequence: 1.e4 e5 2.Nc3 Nc6 3.f4 exf4 4.Nf3 g5 5.h4 g4 6.Ng5 Nh6

Modern Mainline Pressure

Modern games often combine Bxf4 and castling to keep pressure after the king has been drawn to g7 or f7.

Example sequence: 1.e4 e5 2.Nc3 Nc6 3.f4 exf4 4.Nf3 g5 5.h4 g4 6.Ng5 d6 7.d4 h6 8.Nxf7 Kxf7 9.Bc4+ Kg7 10.Bxf4 Nf6 11.O-O

Hamppe-Allgaier branch map

6.Ng5 jump

White heads for f7 instead of retreating. The sacrifice begins here.

Study 6.Ng5
🔥

7.Nxf7

The knight sacrifice drags Black's king forward and demands fast follow-up.

Study Nxf7
⚔️

Bc4+ and d4

White must open lines before the extra piece decides the game.

Study the attack
🛡️

Black's ...d5

Black blocks the bishop and fights for central stability.

Study ...d5

Interactive Hamppe-Allgaier Replay Lab

The selector uses supplied games only, stripped to the seven mandatory PGN tags. No replay loads until you choose a game.

Suggested route: Gallagher-Hresc for a direct White attack, Petr-Navara for Black resources, then Howell-Hammer for a modern practical White win.

Practical study path

  1. Memorise the identity: 6.Ng5, not 6.Ne5, is the Hamppe-Allgaier route.
  2. Study 6...h6 7.Nxf7 Kxf7 before playing either side.
  3. For White, attach Bc4+, d4 and Bxf4 to the sacrifice.
  4. For Black, learn ...d5 and consolidation before accepting the knight casually.
  5. Replay one White win and one Black win before using the line in blitz or classical games.

Hamppe-Allgaier Gambit FAQ

These questions cover the exact move order, 6.Ng5, 7.Nxf7, Bc4+, d4, Bxf4, ...d5, ...Nh6, the King's Gambit Allgaier comparison and the supplied replay study path.

Definition and move order

What is the Hamppe-Allgaier Gambit?

The Hamppe-Allgaier Gambit is the Vienna Gambit line 1.e4 e5 2.Nc3 Nc6 3.f4 exf4 4.Nf3 g5 5.h4 g4 6.Ng5. White jumps toward f7 and invites a sacrificial attack. Start with the Hamppe-Allgaier Gambit Starter diagram before using the replay lab.

Why is it called Hamppe-Allgaier?

It is named as a Vienna cousin of the King's Gambit Allgaier idea, with the Hamppe/Vienna move order including Nc3. The key theme is Ng5 and often Nxf7 to pull Black's king forward. Use the Allgaier Sacrifice diagram to see the name's tactical meaning.

What is the main sacrifice?

The main sacrifice is 6...h6 7.Nxf7 Kxf7. White gives a knight to expose the king and then tries to attack with d4, Bc4+, Bxf4 and castling. Use the King Dragged Out diagram before replaying the model games.

Why not 6.Ne5 like a Kieseritzky idea?

In this Vienna version, 6.Ne5 is much less attractive because Black already has a knight on c6 influencing the centre and tactics. White normally uses 6.Ng5 instead. Use the Starter diagram to compare the knight's route.

What ECO code is this?

The Hamppe-Allgaier Gambit is classified under ECO C25 as part of the Vienna Game. The exact identifying route is 3.f4, 4.Nf3, 5.h4 and 6.Ng5. Use the Starter diagram to fix the move order.

Is the Hamppe-Allgaier sound?

It is extremely sharp and risky. White can create powerful attacks, but Black can often survive with ...d5, ...Nf6, ...h6 and accurate king movement. Use the Black's Thematic ...d5 diagram and then replay one Black win before trusting it.

Main tactical ideas

Why does White play 6.Ng5?

White plays 6.Ng5 to target f7 and force Black into a decision about ...h6 and Nxf7. The move is aggressive and often sacrifices the knight for time and king exposure. Use the Hamppe-Allgaier Starter diagram first.

Why does Black play 6...h6?

Black plays 6...h6 to challenge the knight and ask whether White really wants to sacrifice on f7. It is the thematic test of the line. Use the Allgaier Sacrifice: 6...h6 7.Nxf7 diagram.

Why does White play 7.Nxf7?

White plays 7.Nxf7 to drag Black's king to f7 and make future checks and central breaks more powerful. White is not winning material; White is buying initiative. Use the King Dragged Out diagram before judging the sacrifice.

Why is Bc4+ important?

Bc4+ uses the bishop's diagonal to punish the exposed king after Kxf7. It is one of White's most natural ways to keep the attack flowing. Use the Bc4+ Check diagram before replaying Gallagher (White) vs Hresc (Black).

Why is d4 important?

d4 opens the centre and gives White attacking routes before Black can consolidate the extra piece. If White delays the centre break, Black often stabilises. Use the Central Break: d4 diagram before replaying Shulman (White) vs Marciano (Black).

Why does White recover on f4 with Bxf4?

Bxf4 develops, recovers a pawn and adds pressure around Black's exposed king. It is a common way to make the knight sacrifice feel less like pure speculation. Use the Recovering on f4 diagram.

What is Black's ...d5 idea?

Black's ...d5 blocks the bishop, challenges the centre and may return material to reach safety. It is one of Black's most important defensive resources. Use Black's Thematic ...d5 diagram before replaying Black-side model games.

What is the ...Nh6 alternative?

...Nh6 can sidestep the immediate ...h6 Nxf7 structure, but it does not make the position quiet. White still gets attacking chances and central breaks. Use the Alternative: 6...Nh6 diagram before comparing it with the main sacrifice.

White and Black plans

What should White do after Nxf7?

White should attack with tempo: Bc4+, d4, Bxf4, castling and rook pressure. Slow moves let Black's extra knight matter. Use the Bc4+ and Central Break diagrams as White's first plan.

What should Black do after accepting Nxf7?

Black should block diagonals, use ...d5 when possible, develop with ...Nf6 or ...Be7, and avoid drifting into mating nets. The king must walk to a safer square without losing the centre. Use the ...d5 and Modern Mainline Pressure diagrams.

Should White castle kingside or queenside?

Both are possible. Long castling can create rook-on-g-file attacks, while short castling often supports central pressure and a rook on f1. Use the Long-Castle Attack and Modern Mainline Pressure diagrams to compare.

Is the knight on c6 useful for Black?

The knight on c6 stops some Kieseritzky-style ideas, but it does not automatically defend the king after Ng5 and Nxf7. Black still needs exact defensive play. Use the Starter and Nxf7 diagrams to see the tension.

What is White's biggest danger?

White's biggest danger is sacrificing on f7 without opening lines quickly enough. If Black consolidates, White is simply down a knight. Use the Black-side replay group before adding this to your repertoire.

What is Black's biggest danger?

Black's biggest danger is greed. If Black keeps material but ignores development and king safety, Bc4+, d4 and rook pressure can become decisive. Use Gallagher (White) vs Hresc (Black) in the replay lab after the Long-Castle diagram.

Is this line good for blitz?

The Hamppe-Allgaier can be a strong blitz surprise because the attacking ideas are direct and defenders often misplace the king. It is also volatile; one missed resource can lose. Use the Blitz route in the adviser and load a short White attacking win.

Is this line good for classical chess?

It is playable as a prepared surprise, but it is not a low-risk classical repertoire line. Strong defenders know ...d5 and consolidation plans. Use the full replay lab and compare Navara's Black-side game with Gallagher's White attack.

Replay study path

Which replay should I start with?

Start with Gallagher (White) vs Hresc (Black) because it shows the classic attacking payoff with long castling and a direct mate. Load it after the Long-Castle Attack diagram.

Which replay shows Black defending well?

Van der Weide (White) vs Zuidema (Black) and Petr (White) vs Navara (Black) are useful Black-side models. They show how accurate defence and central counterplay can neutralise the sacrifice. Load one after the ...d5 diagram.

Which replay shows a modern White success?

Howell (White) vs Hammer (Black) is a strong modern practical model where White survives the sacrifice and converts the initiative. Load it after the Modern Mainline Pressure diagram.

Which replay shows a compact attacking win?

Gallagher (White) vs Hresc (Black) is the cleanest compact attacking win in the supplied set. It is ideal for learning the direct pattern. Load it after the Long-Castle Attack diagram.

Which replay shows a long technical conversion for White?

Lunev (White) vs Kotova (Black) shows White navigating the complications and later converting. It is useful after you understand the early sacrifice. Load it from the White conversion replay group.

Which replay shows elite Black resources?

Petr (White) vs Navara (Black) is a useful high-level Black-resource game, showing counterplay against White's attacking setup. Load it after the ...d5 and Modern Mainline diagrams.

How should I study this page without memorising everything?

Study four anchors: 6.Ng5, 7.Nxf7 Kxf7, Bc4+/d4, and Black's ...d5 resource. Use the adviser to choose one White win and one Black win.

What should I remember first?

Remember that Nxf7 is a time sacrifice, not a material win. White must open lines immediately, while Black must return or use tempi to reach safety. Start with the Nxf7 and ...d5 diagrams.

Warnings and comparisons

Is this the same as the King's Gambit Allgaier?

No. It resembles the King's Gambit Allgaier, but the Vienna move order includes Nc3 and Black's ...Nc6. That changes important knight and centre tactics. Use the Starter diagram to see the Vienna-specific position.

Is 6.Ng5 forced?

6.Ng5 is the defining Hamppe-Allgaier move. White can choose other Vienna Gambit branches, but then it is no longer this line's main idea. Use the Starter diagram as the boundary marker.

Can Black decline the sacrifice?

Black can choose alternatives such as ...Nh6 or earlier deviations, but the thematic test is ...h6 followed by Nxf7. Use the Alternative: 6...Nh6 diagram to see a non-standard branch.

Is White objectively winning after Kxf7?

No. White has attacking chances, not a forced win. If Black defends accurately, the extra knight can decide. Compare Gallagher (White) vs Hresc (Black) with Petr (White) vs Navara (Black) in the replay lab.

Is Black objectively safe after accepting?

No. Black's king is exposed and can be mated quickly if development lags. The position demands accurate central defence. Use the Long-Castle Attack diagram before assuming Black is safe.

Why is ...d5 so important?

...d5 blocks the bishop on c4 and challenges White's centre. It is one of the cleanest ways for Black to reduce the attack. Use Black's Thematic ...d5 diagram as the defensive anchor.

What is the biggest lesson of the Hamppe-Allgaier?

The biggest lesson is that king exposure, time and central lines matter more than the raw piece count in the opening. White must attack fast; Black must stabilise fast. Use the replay lab after the Nxf7 diagram.

Should I play it in my own games?

Play it if you enjoy forcing tactics and have studied both the attacking wins and Black defensive wins. Avoid it if you want low-risk development. Use the adviser first and then load one White and one Black model replay.

Use the Hamppe-Allgaier as a centre-versus-king safety lab

The Hamppe-Allgaier is not just a wild knight sacrifice. It is a test of whether White can open lines quickly enough before Black's extra piece becomes decisive.

Help Support Kingscrusher & Chessworld:
To ensure your purchase directly supports my work, please make sure to select the 🔘 'Buy this course' (individual purchase) radio button on the Udemy page. This also grants you lifetime access to the content!
🔥 Get Chess Course Discounts

🎓 Kingscrusher Chess Courses Index (All Courses + Discounts) Guide
This page is part of the Kingscrusher Chess Courses Index (All Courses + Discounts) Guide — Browse the full Kingscrusher course library in one place — topics, bundles, and the latest Udemy discount links.
♘ Vienna Game Guide
This page is part of the Vienna Game Guide — Study the Vienna Game from the main 1.e4 e5 2.Nc3 hub, then choose the exact branch you need: the aggressive Vienna Gambit, the wild Frankenstein-Dracula Variation, Steinitz Gambit, Paulsen lines, and low-memorization attacking systems.