Difference between revisions of "User:Selinger"

From HexWiki
Jump to: navigation, search
Line 1: Line 1:
 
= Proposed article: Flank =
 
= Proposed article: Flank =
  
A '''flank''' is a sequence of [[friendly]] [[stone]]s that are either adjacent or linked by [[bridge]]s in a certain way, for example like this:
+
A '''flank''' is a sequence of [[friendly]] [[stone]]s that are either adjacent or linked by [[bridge]]s in a certain way, and with a certain amount of space on one side, for example like this:
 
<hexboard size="6x11"
 
<hexboard size="6x11"
 
   edges="none"
 
   edges="none"
 
   coords="none"
 
   coords="none"
   visible="area(a6,d6,g5,k3,i3,e5,d5)"
+
   visible="area(a6,d6,g5,k3,k1,i1,e3,d3,a4)"
   contents="B 1:a6 2:b6 3:c6 4:e5 5:f5 6:h4 7:j3 8:k3"
+
   contents="R 1:a6 2:b6 3:c6 4:e5 5:f5 6:h4 7:j3 8:k3"
 
   />
 
   />
 
Apart from [[ladder]]s, 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 template|interior]] and [[edge template]]s.
 
Apart from [[ladder]]s, 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 template|interior]] and [[edge template]]s.
  
What makes a flank useful is that its owner can use it for [[climbing]]. For example, consider the following situation, and assume the stones "A" and "B" are connected to opposite edges.  
+
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 "C" are connected to opposite edges.  
<hexboard size="6x12"
+
<hexboard size="6x11"
 
   edges="none"
 
   edges="none"
 
   coords="none"
 
   coords="none"
 
   visible="area(a6,d6,g5,k3,k1,i1,e3,d3,a4)"
 
   visible="area(a6,d6,g5,k3,k1,i1,e3,d3,a4)"
   contents="B A:a4 a6 b6 c6 e5 f5 h4 j3 B:k3 E *:k1"
+
   contents="R C:a4 A:a6 b6 c6 e5 f5 h4 j3 B:k3 E *:k1"
 
   />
 
   />
Then Blue can [[climbing|climb]] all the way from A to the cell marked "*", by a sequence of forcing moves as follows:
+
Then Red can [[climbing|climb]] all the way from C to the cell marked "*", by a sequence of forcing moves as follows:
 
<hexboard size="6x12"
 
<hexboard size="6x12"
 
   edges="none"
 
   edges="none"
 
   coords="none"
 
   coords="none"
 
   visible="area(a6,d6,g5,k3,k1,i1,e3,d3,a4)"
 
   visible="area(a6,d6,g5,k3,k1,i1,e3,d3,a4)"
   contents="B a6 b6 c6 e5 f5 h4 j3 B:k3
+
   contents="R A:a6 b6 c6 e5 f5 h4 j3 B:k3
             B A:a4 2:b4 4:c4 6:d6 8:e3 10:f3 12:g5 14:h2 16:i4 18:j1 20:k1
+
             R C:a4 2:b4 4:c4 6:d6 8:e3 10:f3 12:g5 14:h2 16:i4 18:j1 20:k1
             R 1:a5 3:b5 5:d5 7:c5 9:e4 11:g4 13:f4 15:i3 17:h3 19:j2 21:k2"
+
             B 1:a5 3:b5 5:d5 7:c5 9:e4 11:g4 13:f4 15:i3 17:h3 19:j2 21:k2"
 
   />
 
   />
 +
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 already been filled in:
 
Intruding into the flank's bridges does not help the opponent. The flank still works even if all the bridges have already been filled in:
 
<hexboard size="6x12"
 
<hexboard size="6x12"
Line 31: Line 33:
 
   coords="none"
 
   coords="none"
 
   visible="area(a6,d6,g5,k3,k1,i1,e3,d3,a4)"
 
   visible="area(a6,d6,g5,k3,k1,i1,e3,d3,a4)"
   contents="B A:a4 a6 b6 c6 e5 f5 h4 j3 B:k3 E *:k1
+
   contents="R C:a4 A:a6 b6 c6 e5 f5 h4 j3 B:k3 E *:k1
             R d5 B d6 R g4 B g5 R i3 B i4"
+
             B d5 R d6 B g4 R g5 B i3 R i4"
 
   />
 
   />
  
 
== Definition ==
 
== 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, in the following, we will only consider blue flanks that are oriented left-to-right and facing upward.
+
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.
  
We can define such flanks as follows:
+
We can define such flanks inductively as follows:
  
* A single blue stone is a flank. The stone is both the starting point and the endpoint.
+
* Base case: A single red stone, together with the indicated space, is a flank. The stone marked "+" is both the starting point and the endpoint of the flank.<br>F0: <hexboard size="3x1"
 +
  float="inline"
 +
  edges="none"
 +
  coords="none"
 +
  contents="R +:a3"
 +
  />
  
* A flank with endpoint ''x'' can be extended with any of the following patterns:<br><hexboard size="1x2"
+
* Induction step: A flank can be extended with any of the following patterns:<br>F1: <hexboard size="3x2"
 
   float="inline"
 
   float="inline"
 
   edges="none"
 
   edges="none"
 
   coords="none"
 
   coords="none"
   contents="B -:a1 +:b1"
+
   contents="R -:a3 +:b3"
   /><hexboard size="2x3"
+
   /> F2: <hexboard size="4x3"
 
   float="inline"
 
   float="inline"
 
   edges="none"
 
   edges="none"
 
   coords="none"
 
   coords="none"
   visible="area(a2,b2,c1,b1)"
+
   visible="area(a2,a4,b4,c1,c3,b1)"
   contents="B -:a2 +:c1"
+
   contents="R -:a4 +:c3"
   /><hexboard size="2x3"
+
   /> F3: <hexboard size="4x3"
 
   float="inline"
 
   float="inline"
 
   edges="none"
 
   edges="none"
 
   coords="none"
 
   coords="none"
   visible="area(a2,b2,c1,b1)"
+
   visible="area(a2,a4,b4,c1,c3,b1)"
   contents="B -:a2 +:c1 R b1 B b2"
+
   contents="R -:a4 +:c3 B b3 R b4"
   /><br>Here, "−" denotes the previous endpoint, and "+" denotes the new endpoint.
+
   /><br>Here, "−" denotes the previous endpoint, and "+" denotes the new endpoint. The orientation of these patterns matters, i.e., they cannot be rotated.
  
Here is an example of a flank with starting point "A" and endpoint "B":
+
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:
 
<hexboard size="6x11"
 
<hexboard size="6x11"
 
   edges="none"
 
   edges="none"
 
   coords="none"
 
   coords="none"
   visible="area(a6,d6,g5,k3,i3,e5,d5)"
+
   visible="area(a4,a6,d6,g5,k3,k1,i1,e3,d3)"
   contents="B A:a6 b6 c6 R d5 B d6 e5 f5 h4 R i3 B i4 j3 B:k3"
+
   contents="R A:a6 b6 c6 B d5 R d6 e5 f5 h4 B i3 R i4 j3 B:k3"
 
   />
 
   />
 +
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 ==
 
== Capped flank ==
  
 
A flank is '''capped''' if it has been extended past its endpoint "B" with one of the following patterns:
 
A flank is '''capped''' if it has been extended past its endpoint "B" with one of the following patterns:
<hexboard size="2x2"
+
C1: <hexboard size="3x2"
 
   float="inline"
 
   float="inline"
 
   edges="none"
 
   edges="none"
 
   coords="none"
 
   coords="none"
   visible="a2 b1"
+
   visible="area(a1,a3,b2,b1)"
   contents="B B:a2 b1"
+
   contents="R B:a3 b2"
   /><hexboard size="2x1"
+
   /> C2: <hexboard size="3x2"
 
   float="inline"
 
   float="inline"
 
   edges="none"
 
   edges="none"
 
   coords="none"
 
   coords="none"
   contents="B B:a2 a1"
+
  visible="area(a1,a3,b2,b1)"
   /><hexboard size="3x2"
+
   contents="R B:a3 b1"
 +
   /> C3: <hexboard size="3x2"
 
   float="inline"
 
   float="inline"
 
   edges="none"
 
   edges="none"
 
   coords="none"
 
   coords="none"
   visible="a2,a3,b1,b2"
+
   visible="area(a1,a3,b2,b1)"
   contents="B B:a3 b1"
+
   contents="R B:a3 b1 B a2 R b2"
   /><hexboard size="3x2"
+
   /> C4: <hexboard size="3x3"
 
   float="inline"
 
   float="inline"
 
   edges="none"
 
   edges="none"
 
   coords="none"
 
   coords="none"
   visible="a2,a3,b1,b2"
+
   visible="-c3"
   contents="B B:a3 b1 R a2 B b2"
+
   contents="R B:a3 c2 c1"
 
   />
 
   />
Here, "B" denotes the original endpoint of the flank. The following are some examples of capped flanks. In each case, the flank's starting point "A" and original endpoint "B" are shown.
+
Here, "B" denotes the original endpoint of the flank. Other cap patterns are also possible; the above C1&ndash;C4 are just some common examples of caps.  
  
ADD SOME EXAMPLES HERE.
+
Here are some examples of capped flanks. In each case, the flank's starting point "A" and original endpoint "B" are shown.
  
If Blue climbs along a capped flank, Blue will connect.
+
F0+F1+C1:
 +
<hexboard size="3x3"
 +
  edges="none"
 +
  coords="none"
 +
  visible="-c3"
 +
  contents="R A:a3 B:b3 c2"
 +
  />
 +
F0+F2+C2:
 +
<hexboard size="4x4"
 +
  edges="none"
 +
  coords="none"
 +
  visible="area(a2,a4,b4,d2,d1,b1)"
 +
  contents="R A:a4 B:c3 d1"
 +
  />
 +
F0+F2+F2+F3+F2+C1:
 +
<hexboard size="6x9"
 +
  edges="none"
 +
  coords="none"
 +
  visible="area(a6,b6,g4,i2,i1,g1,d2,b3,a4)"
 +
  contents="R A:a6 c5 e4 f4 B:h3 i2"
 +
  />
 +
 
 +
For any flank, let "C" be the hex that is positioned relative to the flank's starting point "A" as follows:
 +
<hexboard size="3x1"
 +
  edges="none"
 +
  coords="none"
 +
  contents="R A:a3 E C:a1"
 +
  />
 +
If Red plays at "C" and climbs along a capped flank, Red will connect. Consequently, any capped flank, with a red stone added at position "C", is a [[strong connection|connected group]].
  
 
ADD EXAMPLES.
 
ADD EXAMPLES.

Revision as of 17:10, 7 March 2021

Proposed article: Flank

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 "C" are connected to opposite edges.

BCA

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

18201419218101715BC249131116137512A6

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 already been filled in:

BCA

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.

We can define such flanks inductively as follows:

  • Base case: A single red stone, together with the indicated space, is a flank. The stone marked "+" is both the starting point and the endpoint of the flank.
    F0:
  • Induction step: A flank can be extended with any of the following patterns:
    F1:
    F2:
    F3:

    Here, "−" denotes the previous endpoint, and "+" 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:

BA

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:

AB

F0+F2+C2:

BA

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

BA

For any flank, let "C" be the hex that is positioned relative to the flank's starting point "A" as follows:

CA

If Red plays at "C" and climbs along a capped flank, Red will connect. Consequently, any capped flank, with a red stone added at position "C", is a connected group.

ADD EXAMPLES.

POINT OUT HOW THIS GENERALIZES A 2ND ROW LADDER, WITH THE FLANK GENERALIZING THE "EDGE" AND THE CAP GENERALIZING A LADDER ESCAPE.

Interior templates from capped flanks

Consider a capped flank with starting point "A", and suppose the hex marked "*" is also occupied by Blue:

A

Then, given the right amount of space, the hex marked "*" together with the capped flank forms an interior templates.

ADD SOME EXAMPLES HERE. ALSO EXPLAIN MORE CAREFULLY WHAT IS THE "RIGHT" AMOUNT OF SPACE.

Moreover, two capped flanks growing in opposite directions from an empty hex and facing the same way form an interior template.

ADD EXAMPLE.

Edge templates from capped flanks

ADD EXAMPLES.

Usage example

FROM A GAME.

3rd row ladders along flanks

Above, we pointed out that climbing along a flank is analogous to a 2nd row ladder. It is similarly possible to climb along a flank at a greater distance. In other words, there is an analog of a 3rd row ladder along a flank. This requires slightly more space, and if the ladder is to connect, it requires a different kind of cap (or ladder escape).

ADD EXAMPLE.