DocsNodesValues

Grid Count

How many cells are held by a given owner.

score, area, percent, how many tiles, win condition, tally
Category
Values
Outputs
value
Runs live in
no target yet

Either the raw count or the share of the whole board. That number is the score, and it is also the win condition: compare it against a threshold and you have a game that ends.

Feed it to a Label and the score is on screen with nothing in between.

Inputs

SocketTypeWiring
gridvalue

Parameters

NameTypeDefaultAvailable whenWhat it does
Ownernumber1always
Modecount | fractioncountalways

Built with this node

Nothing in the manual is built around this node yet.

See also

  • labelTo put the number on screen.
  • compareTo turn the score into a win or lose.

Open the editor and try it