Difference between revisions of "Template"
m (Fixed link) |
(Converted to new hexboard diagrams) |
||
Line 10: | Line 10: | ||
== Overlapping templates == | == 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 | + | 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 is the following situation, called a ''U-turn'': |
<hexboard size="5x5" | <hexboard size="5x5" | ||
− | contents="B b3 R 3:b4 R 1:c2 R 2:d3 E *:c3 | + | coords="none" |
+ | edges="none" | ||
+ | visible="area(b3,b4,c4,d3,d2,c2)" | ||
+ | contents="B b3 R 3:b4 R 1:c2 R 2:d3 E *:c3" | ||
/> | /> | ||
− | 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 | + | 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 *. In fact, if Blue plays at *, Red cannot defend both bridges in a single move. |
== See also == | == See also == |
Revision as of 04:55, 7 December 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 is the following situation, called a U-turn:
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 *. In fact, if Blue plays at *, Red cannot defend both bridges in a single move.