Difference between revisions of "Pivoting template"

From HexWiki
Jump to: navigation, search
m (Pivoting ladder creation templates: typo)
(Add some properties of pivoting templates, as well as some important missing templates.)
Line 54: Line 54:
  
 
=== 3rd row ===
 
=== 3rd row ===
 +
 +
<hexboard size="3x3"
 +
  coords="none"
 +
  edges="bottom"
 +
  visible="area(a3,c1,c3)-c2"
 +
  contents="R A:c1 E B:c3"
 +
  />
  
 
<hexboard size="3x5"
 
<hexboard size="3x5"
Line 70: Line 77:
  
 
=== 4th row ===
 
=== 4th row ===
 +
 +
<hexboard size="4x4"
 +
  coords="none"
 +
  edges="bottom"
 +
  visible="area(a4,d1,d4)"
 +
  contents="R A:d1 E B:d3"
 +
  />
  
 
<hexboard size="4x6"
 
<hexboard size="4x6"
Line 191: Line 205:
 
   />
 
   />
 
This guarantees that Red can connect A to the edge, because either A will connect outright, or else B connects to the edge and also to A via the flank.
 
This guarantees that Red can connect A to the edge, because either A will connect outright, or else B connects to the edge and also to A via the flank.
 +
 +
== If A and B [https://www.hexwiki.net/index.php/AND_and_OR_rules#Connections_and_semi-connections semi-connected] ==
 +
 +
=== Connecting B with sente ===
 +
 +
If A and B are semi-connected and blue decides to block red from connecting A, red not only gets to connect B, but also gets [https://www.hexwiki.net/index.php/Initiative sente]. This is because once red connects B, blue will have to spend a move blocking B from connecting back to A.
 +
 +
=== Deriving normal templates ===
 +
 +
A normal template for connecting A can be derived from a pivoting template by placing a red stone in B, and adding sufficient space for A and B to be semi-connected. This is because, by definition, if blue tries to block A from the edge, red can connect B. However, if red already has a stone at B, they can spend that move connecting back to A.
  
 
== Weak pivoting templates ==
 
== Weak pivoting templates ==

Revision as of 22:31, 9 March 2023

A pivoting template is a kind of edge template that guarantees that the template's owner can either connect the template's stone(s) to the edge, or else can occupy a specified empty hex and connect it to the edge.

More precisely, a pivoting template is a pattern that has a stone A and an empty hex B, such that the template's owner can continuously threaten to connect A to the edge until the point where the template's owner either connects A to the edge or occupies B and connects B to the edge. To be considered a "template", its carrier should moreover be minimal with this property.

Example

The following is a pivoting template.

AB

Proof: Red's main threat is to bridge to c and connect to the edge by ziggurat or edge template III1b. Therefore, to prevent Red from connecting to the edge outright, Blue must play in one of the cells a,...,g.

ABabcdefg

If Blue plays at a, Red responds at b and connects outright by edge template IV1a.

If Blue plays at b, Red responds with a 3rd row ladder escape fork:

A82147635

If Blue plays at c, d, or f, Red responds as follows and is connected by edge template V2f. If Blue plays on the right instead of 3, Red responds as if defending template V2f.

A431211

If Blue plays at e or g, Red responds at c and gets a 2nd or 3rd row ladder, which can reach B by ladder escape fork.

List of pivoting templates

2nd row

AB

3rd row

AB
AB
AB

4th row

AB
AB
AB
AB

5th row

AB
AB
BA
BA

6th row

AB
AB
AB
AB
AB
AB
AB

Pivoting templates and flanks

Pivoting templates can be useful in many situations, but are especially useful in connection with flanks. Specifically, if we line up points A and B of any pivoting template with points A and J of a capped flank, we obtain a guaranteed connection to the edge. For example, consider the capped flank

AJ

Attaching this on top of one of the above pivoting templates, we get the following:

AB

This guarantees that Red can connect A to the edge, because either A will connect outright, or else B connects to the edge and also to A via the flank.

If A and B semi-connected

Connecting B with sente

If A and B are semi-connected and blue decides to block red from connecting A, red not only gets to connect B, but also gets sente. This is because once red connects B, blue will have to spend a move blocking B from connecting back to A.

Deriving normal templates

A normal template for connecting A can be derived from a pivoting template by placing a red stone in B, and adding sufficient space for A and B to be semi-connected. This is because, by definition, if blue tries to block A from the edge, red can connect B. However, if red already has a stone at B, they can spend that move connecting back to A.

Weak pivoting templates

There is another notion similar to a pivoting template, but slightly weaker. In a weak pivoting template, we merely require that the template's owner can guarantee to either connect A to the edge or occupy B and connect B to the edge, but we drop the requirement that the owner can "continuously threaten to connect A to the edge until" that point. Typically this means that after the player occupies B, the opponent can still choose whether to let the player connect A or B to the edge.

The following are examples of weak pivoting templates:

AB
AB

Weak pivoting templates are sufficient to form a connection when combined with a flank. However, there are some contexts where a proper pivoting template would connect, but a weak pivoting template does not. The following is an example of this:

abcdefghi123456789

The highlighted area is a weak pivoting template, but with Blue to move, the position is losing for Red. On the other hand, if we use a proper pivoting template in the analogous situation, the position is winning for Red:

abcdefghi123456789

Pivoting ladder creation templates

Sometimes, the pivoting property can be combined with other properties of templates. For example, a ladder creation template guarantees that Red can get at least a specified ladder. A pivoting ladder creation template is a template with a red stone A and an empty hex B, such that Red can continuously threaten to get a ladder from A, until the point where Red either gets the ladder or occupies and connects B to a ladder. When combined with an appropriate ladder escape, a pivoting ladder creation template becomes a pivoting template.

For example, the following is a pivoting 3rd-row-ladder creation template.

AB

The only way for Blue to prevent A from connecting outright or getting the ladder is to play at 1. In this case, Red responds as follows:

A621543

See also