Difference between revisions of "Template"

From HexWiki
Jump to: navigation, search
(removed dead external link)
(Added carrier and overlap)
Line 5: Line 5:
 
* [[Unnamed interior templates|Interior template]]s
 
* [[Unnamed interior templates|Interior template]]s
 
* [[Second order template]]s
 
* [[Second order template]]s
 +
 +
The '''carrier''' of a template consists of all of those cells (occupied or empty) that are part of the template. Empty cells in a template's carrier are an important part of the template and must not be ignored: if any of these cells are occupied by the opponent, the template is typically no longer valid.
 +
 +
== Overlapping templates ==
 +
 +
Two templates '''overlap''' if some empty cell belongs to both of their carriers. Care must be taken with overlapping templates: although each template may be valid individually, the overlapping templates may not form a valid connection as a whole. The simplest example of such a situation is the following:
 +
<hexboard size="5x5"
 +
  contents="B b3 R 3:b4 R 1:c2 R 2:d3 E *:c3 E *:c4 E *:d2"
 +
  />
 +
Although 1 is connected to 2 via a valid [[bridge]] template, and 2 is connected to 3 via a valid bridge template, 1 is not connected to 3, because the bridges overlap at c3. In fact, if Blue plays at c3, Red cannot defend both bridges in a single move.
  
 
== See also ==
 
== See also ==

Revision as of 14:34, 16 August 2020

A template is a pattern which guarantees some kind of connection. There are several different (and sometimes overlapping) types:

The carrier of a template consists of all of those cells (occupied or empty) that are part of the template. Empty cells in a template's carrier are an important part of the template and must not be ignored: if any of these cells are occupied by the opponent, the template is typically no longer valid.

Overlapping templates

Two templates overlap if some empty cell belongs to both of their carriers. Care must be taken with overlapping templates: although each template may be valid individually, the overlapping templates may not form a valid connection as a whole. The simplest example of such a situation is the following:

abcde12345123

Although 1 is connected to 2 via a valid bridge template, and 2 is connected to 3 via a valid bridge template, 1 is not connected to 3, because the bridges overlap at c3. In fact, if Blue plays at c3, Red cannot defend both bridges in a single move.

See also

Reference