Difference between revisions of "Flank"

From HexWiki
Jump to: navigation, search
(Edge templates from capped flanks: Added more schemas for making edge templates from flanks.)
(Edge templates from capped flanks: Added a schema. Added a disclaimer.)
 
(6 intermediate revisions by the same user not shown)
Line 158: Line 158:
 
The simplest method is to add a Red piece to the jumping-off point "J". Since this [[strong connection|connects]] to the rest of the flank, such a group can be viewed as a (potentially very large) interior template.
 
The simplest method is to add a Red piece to the jumping-off point "J". Since this [[strong connection|connects]] to the rest of the flank, such a group can be viewed as a (potentially very large) interior template.
  
Many of the named interior templates are of this form. This is the case for the [[crescent]], [[trapezoid]] (in more than one way), [[Interior_template#Unnamed templates|scooter]], [[Interior_template#Unnamed templates|bicycle]], as well as the [[Interior_template#The long crescent|long crescent]] and various [[Interior_template#The long trapezoid|long trapezoid]]s.
+
Many of the named interior templates are of this form. This is the case for the [[crescent]], [[trapezoid]] (in more than one way), [[Interior_template#The scooter|scooter]], [[Interior_template#The bicycle|bicycle]], as well as the [[Interior_template#The long crescent|long crescent]] and various [[Interior_template#The long trapezoid|long trapezoid]]s.
 
<hexboard size="3x3"
 
<hexboard size="3x3"
 
   float="inline"
 
   float="inline"
Line 239: Line 239:
 
Here, the hex "J" remains empty. The point is that if Blue plays at "x", Red plays at "J", and vice versa.  
 
Here, the hex "J" remains empty. The point is that if Blue plays at "x", Red plays at "J", and vice versa.  
  
Several of the named interior templates are of this form. This is the case for the [[Interior template#The span|span]], the [[box]], the [[Interior template#Unnamed templates|shopping cart]], and the [[Interior template#The long span|long span]]:
+
Several of the named interior templates are of this form. This is the case for the [[Interior template#The span|span]], the [[box]], the [[Interior template#The shopping cart|shopping cart]], and the [[Interior template#The long span|long span]]:
  
 
<hexboard size="3x4"
 
<hexboard size="3x4"
Line 313: Line 313:
 
If Blue plays at one of the hexes marked "J", Red can play at the other to keep the group connected.
 
If Blue plays at one of the hexes marked "J", Red can play at the other to keep the group connected.
  
Of the named interior templates, the [[Interior_template#The_parallelogram|parallelogram]] and the [[Interior_template#Unnamed templates|wide parallelogram]] are of this form:
+
Of the named interior templates, the [[Interior_template#The_parallelogram|parallelogram]] and the [[Interior_template#The wide parallelogram|wide parallelogram]] are of this form:
  
 
<hexboard size="3x4"
 
<hexboard size="3x4"
Line 329: Line 329:
 
/>
 
/>
  
But of course, it is again possible to constuct infinitely many examples. Here is a larger example:
+
But of course, it is again possible to construct infinitely many examples. Here is a larger example:
  
 
<hexboard size="6x10"
 
<hexboard size="6x10"
Line 337: Line 337:
 
   contents="R A:f4 g4 B:i3 j2 A:e2 B:c3 b4 E J:e4 J:f2"
 
   contents="R A:f4 g4 B:i3 j2 A:e2 B:c3 b4 E J:e4 J:f2"
 
/>
 
/>
 +
 +
=== Method 4 ===
 +
 +
A fourth way to construct interior templates from flanks is to combine two capped flanks so that their points "J" overlap, with an additional red stone at "x", schematically like this:
 +
<hexboard size="3x4"
 +
  float="inline"
 +
  edges="none"
 +
  coords="none"
 +
  visible="area(c1,a3,b3,d1)"
 +
  contents="E *:(c1--a3) J:d1 R A:b3"
 +
/> + <hexboard size="2x3"
 +
  float="inline"
 +
  edges="none"
 +
  coords="none"
 +
  visible="area(b1,a2,b2,c1)"
 +
  contents="R x:b2"
 +
/> + <hexboard size="2x4"
 +
  float="inline"
 +
  edges="none"
 +
  coords="none"
 +
  visible="area(b1,a2,c2,d1)"
 +
  contents="E *:(b1--d1) J:a2 R A:c2"
 +
/> = <hexboard size="4x7"
 +
  float="inline"
 +
  edges="none"
 +
  coords="none"
 +
  visible="area(c2,a4,d4,g1,e1,d2)"
 +
  contents="E *:(c2--a4) *:(e1--g1) J:d2 R x:d4 A:b4 A:f2"
 +
/>
 +
Here again, the hex "J" remains empty. The idea is that if Blue plays in any of the 5 completely blank cells, Red responds at "J"; if Blue plays at "J", Red responds in the center between the two "A"s; in all other cases, Red defends the flanks. The following are examples:
 +
<hexboard size="4x5"
 +
  float="inline"
 +
  edges="none"
 +
  coords="none"
 +
  visible="area(b2,a3,a4,c4,e2,e1,d1,c2)"
 +
  contents="R a3 A:a4 x:c4 A:e2 e1 E J:c2"
 +
/> <hexboard size="5x8"
 +
  float="inline"
 +
  edges="none"
 +
  coords="none"
 +
  visible="area(a3,a4,b5,e5,h2,h1,g1,b2)"
 +
  contents="R b2 a4 b4 A:c5 x:e5 A:g3 h2 h1 E J:e3 +:e2"
 +
/>
 +
Care must be taken that the carriers of the two flanks don't overlap; they could potentially overlap at the point marked "+".
 +
Note that the template guarantees that all red stones will be connected, i.e., not just the groups marked "A", but also "x".
  
 
== Edge templates from capped flanks ==
 
== Edge templates from capped flanks ==
  
Not surprisingly, capped flanks (appropriately rotated and positioned) can also be used to construct edge templates. There are various schemas for doing so, and many of them are "flank versions" of standard edge templates. We give several examples. In each schema, we show the starting point "A" and the jumping-off point "J" of the capped flank, and we indicate by "*" the direction in which the flank continues.
+
Not surprisingly, capped flanks (appropriately rotated and positioned) can also be used to construct edge templates. There are various schemas for doing so, and many of them are "flank versions" of standard edge templates. We give several examples. In each schema, we show the starting point "A" and the jumping-off point "J" of the capped flank, and we indicate by "*" the direction in which the flank continues. (Note that we are technically only claiming the validity of the constructed templates, not their minimality. They often do turn out to be minimal as well, but we do not claim that this is true in general.)
 
E1: <hexboard size="3x3"
 
E1: <hexboard size="3x3"
 
   float="inline"
 
   float="inline"
Line 378: Line 423:
 
   visible="area(d1,b3,a5,d5)"
 
   visible="area(d1,b3,a5,d5)"
 
   contents="R A:d2 E J:b4 *:(d1--b3)"
 
   contents="R A:d2 E J:b4 *:(d1--b3)"
/>
+
/>
Note that E1, ..., E6 generalize edge templates [[Edge_template_III2b|III2-b]], [[Edge_template_IV2b|IV2-b]], [[Fifth_row_edge_templates#V-2-k|V2-k]], [[Fifth_row_edge_templates#V-2-a|V2-a]], [[Edge_template_III2a|III2-a]], and [[Edge_template_IV2a|IV2-a]], respectively (in each case, the template is obtained from the corresponding schema by immediately capping the flank with cap C1). Here is an example using schema E3 and (an appropriately rotated and mirrored version of) the capped flank F0+F2+F1+F1+F2+C1:
+
<br>
 +
E7: <hexboard size="6x7"
 +
  float="inline"
 +
  coords="none"
 +
  edges="bottom"
 +
  visible="area(d3,a6,g6,g4,f4,f1)"
 +
  contents="R A:e2 E J:e4 *:(f1--f3)"
 +
/> E8: <hexboard size="6x5"
 +
  float="inline"
 +
  coords="none"
 +
  edges="bottom"
 +
  visible="area(e1,c3,a6,d6,d4,e4)"
 +
  contents="R A:e2 e3 E J:c4 *:(e1--c3)"
 +
/> E9: <hexboard size="7x6"
 +
  float="inline"
 +
  coords="none"
 +
  edges="bottom"
 +
  visible="area(a7,d7,f4,f1,d3)"
 +
  contents="R A:f2 f4 E J:d4 R d6 E *:(f1--d3)"
 +
/>  
 +
Note that E1, ..., E7 generalize edge templates [[Edge_template_III2b|III2-b]], [[Edge_template_IV2b|IV2-b]], [[Fifth_row_edge_templates#V-2-k|V2-k]], [[Fifth_row_edge_templates#V-2-a|V2-a]], [[Edge_template_III2a|III2-a]], [[Edge_template_IV2a|IV2-a]], and [[Fifth_row_edge_templates#V-2-b|V2-b]], respectively (in each case, the template is obtained from the corresponding schema by immediately capping the flank with cap C1). Here is an example using schema E3 and (an appropriately rotated and mirrored version of) the capped flank F0+F2+F1+F1+F2+C1:
 
<hexboard size="11x6"
 
<hexboard size="11x6"
 
   coords="none"
 
   coords="none"
Line 386: Line 451:
 
   contents="R b10 A:b8 c6 c5 c4 B:d2 e1 E J:d8"
 
   contents="R b10 A:b8 c6 c5 c4 B:d2 e1 E J:d8"
 
/>
 
/>
 +
 +
More generally, one can attach a capped flank to any [[pivoting template]] to create an edge template.
  
 
== Usage example ==
 
== Usage example ==
Line 415: Line 482:
 
             S area(c11,c10,e8,g7,k6,k9,g10,e11)"
 
             S area(c11,c10,e8,g7,k6,k9,g10,e11)"
 
/>
 
/>
 +
 +
== See also ==
 +
 +
* [[Pivoting template]]
 +
* [[Climbing]]
  
 
[[Category:Advanced Strategy]]
 
[[Category:Advanced Strategy]]
 
[[Category:Definition]]
 
[[Category:Definition]]
 
[[Category:Connection types]]
 
[[Category:Connection types]]

Latest revision as of 05:31, 1 December 2022

A flank is a sequence of friendly stones that are either adjacent or linked by bridges in a certain way, and with a certain amount of space on one side, for example like this:

78645123

Apart from ladders, flanks are one of the most common "long-distance" patterns occuring in Hex. They are useful for climbing, and they can be used to form large interior and edge templates.

What makes a flank useful is that its owner can use it for climbing. For example, consider the following situation, and assume the stones "B" and "J" are connected to opposite edges.

BJA

Then Red can zipper all the way from J to the cell marked "*", by a sequence of forcing moves as follows:

18201419218101715BJ249131116137512A6

It is not actually necessary for Red to play moves 6, 12, and 16; Red could also skip these moves. However, they usually do not hurt and may be useful to Red by solidifying Red's position below the flank.

Intruding into the flank's bridges does not help the opponent. The flank still works even if all the bridges have been filled in:

BJA

Definition

A flank can belong to Red or to Blue, and it can be oriented in any of the 6 cardinal directions of the Hex board (a cardinal direction is parallel to an edge or to the short diagonal). In addition, it can be facing up or down (the side it is facing is the side where the empty space is). For simplicity, the following definition refers to red flanks that are oriented left-to-right and facing upward.

Each flank has three distinguished points: a starting point, which we usually mark "A", an endpoint, which we usually mark "B", and a jumping-off point, which we mark "J". We can define flanks inductively as follows:

  • Base case: A single red stone, together with the indicated space, is a flank. In this case, the stone marked "B" is both the starting point and the endpoint. The jumping-off point "J" is also shown.
    F0:
    JB
  • Induction step: A flank can be extended with any of the following patterns:
    F1:
    B
    F2:
    B
    F3:
    B

    Here, "−" denotes the previous endpoint, and "B" denotes the new endpoint. The orientation of these patterns matters, i.e., they cannot be rotated.

Here is an example of the flank obtained by starting with F0 and then extending with F1, F1, F3, F1, F2, F3, and F1. We always use "A" to denote the starting point and "B" to denote the endpoint of the flank:

BJA

We can also use algebraic notation to denote flanks. For example, we write F0+F1+F1+F3+F1+F2+F3+F1 for the above flank.

Capped flank

A flank is capped if it has been extended past its endpoint "B" with one of the following patterns:

C1:
B
C2:
B
C3:
B
C4:
B

Here, "B" denotes the original endpoint of the flank. Other cap patterns are also possible; the above C1–C4 are just some common examples of caps.

Here are some examples of capped flanks. In each case, the flank's starting point "A" and original endpoint "B" are shown.

F0+F1+C1:

JAB

F0+F2+C2:

JBA

F0+F2+F2+F3+F2+C1:

BJA

The point of capped flanks is that if Red plays at the jumping-off point "J" of any capped flank, Red can connect:

159115101412B18613427A3

Note that climbing along a flank is a generalization of 2nd row ladders, with the cap acting as a ladder escape. Indeed, a board edge can be regarded as a straight row of stones, and is therefore a special kind of flank only made up of F1 pieces:

JAB

Interior templates from capped flanks

There are several ways of constructing interior templates from capped flanks.

Method 1

The simplest method is to add a Red piece to the jumping-off point "J". Since this connects to the rest of the flank, such a group can be viewed as a (potentially very large) interior template.

Many of the named interior templates are of this form. This is the case for the crescent, trapezoid (in more than one way), scooter, bicycle, as well as the long crescent and various long trapezoids.

JAB
JAB
JA
JBA
JBA
JAB
JAB
JAB

Here is a larger template constructed by the same method.

BJA

Method 2

Another way to construct interior templates from flanks is to combine a capped flank and the mirror image of a capped flank so that they overlap at the point "J", schematically like this:

JA
+
JA
=
JAxA

Here, the hex "J" remains empty. The point is that if Blue plays at "x", Red plays at "J", and vice versa.

Several of the named interior templates are of this form. This is the case for the span, the box, the shopping cart, and the long span:

JAxA
JAxA
JAxA
JAxAB

Here is a larger example:

JBBAxA

Method 3

A third way to construct interior templates from flanks is to combine a capped flank with a capped flank rotated by 180 degrees, schematically like this:

AJ
+
JA
=
AJJA

or like this:

AJ
+
JA
=
JAAJ

If Blue plays at one of the hexes marked "J", Red can play at the other to keep the group connected.

Of the named interior templates, the parallelogram and the wide parallelogram are of this form:

AJJA
JAAJ

But of course, it is again possible to construct infinitely many examples. Here is a larger example:

AJBBJA

Method 4

A fourth way to construct interior templates from flanks is to combine two capped flanks so that their points "J" overlap, with an additional red stone at "x", schematically like this:

JA
+
x
+
JA
=
JAAx

Here again, the hex "J" remains empty. The idea is that if Blue plays in any of the 5 completely blank cells, Red responds at "J"; if Blue plays at "J", Red responds in the center between the two "A"s; in all other cases, Red defends the flanks. The following are examples:

JAAx
JAAx

Care must be taken that the carriers of the two flanks don't overlap; they could potentially overlap at the point marked "+". Note that the template guarantees that all red stones will be connected, i.e., not just the groups marked "A", but also "x".

Edge templates from capped flanks

Not surprisingly, capped flanks (appropriately rotated and positioned) can also be used to construct edge templates. There are various schemas for doing so, and many of them are "flank versions" of standard edge templates. We give several examples. In each schema, we show the starting point "A" and the jumping-off point "J" of the capped flank, and we indicate by "*" the direction in which the flank continues. (Note that we are technically only claiming the validity of the constructed templates, not their minimality. They often do turn out to be minimal as well, but we do not claim that this is true in general.)

E1:
AJ
E2:
AJ
E3:
AJ


E4:
AJ
E5:
AJ
E6:
AJ


E7:
AJ
E8:
AJ
E9:
AJ

Note that E1, ..., E7 generalize edge templates III2-b, IV2-b, V2-k, V2-a, III2-a, IV2-a, and V2-b, respectively (in each case, the template is obtained from the corresponding schema by immediately capping the flank with cap C1). Here is an example using schema E3 and (an appropriately rotated and mirrored version of) the capped flank F0+F2+F1+F1+F2+C1:

BAJ

More generally, one can attach a capped flank to any pivoting template to create an edge template.

Usage example

The following example is from an actual game. Blue to move and win.

abcdefghijk1234567891011

Note that Blue's central group is already connected to the left edge by double threat at e3 and c7. But how will Blue connect to the right edge? The problem is that h7 does not normally act as a 2nd row ladder escape. Blue starts at j1, then pushes the 2nd row ladder to j5 and pivots at j7. This forces Red to respond at j6.

abcdefghijk1234567891011123456789101211

Now the killer move is c10. This caps the blue flank, and the entire shaded area becomes an edge template. Blue is now connected by double threat at i6 and b10.

abcdefghijk123456789101113

See also