DocsNodesValues

Territory Step

The whole trail-and-capture rule in one node.

splix, capture, enclose, trail, claim, territory, area game
Category
Values
Outputs
value
Runs live in
no target yet

Moving across unclaimed ground leaves a trail. When the trail reconnects with territory you already hold, everything enclosed becomes yours.

That rule is fiddly to build out of individual writes and reads, so it lives in one node. Give it the board and where the player is, and it hands back the board after the move.

Inputs

SocketTypeWiring
gridvalue

Parameters

NameTypeDefaultAvailable whenWhat it does
Player Cellnumber0always
Ownernumber1always
Trailnumber2always
Headnumber3always
Widthnumber10always
Heightnumber10always

Built with this node

Nothing in the manual is built around this node yet.

See also

  • gridStampFor a simpler rival that spreads without needing to enclose anything.
  • gridCountTo score the result.

Open the editor and try it