mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-23 14:42:28 +01:00
35 lines
1.3 KiB
Markdown
35 lines
1.3 KiB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [GoAnalysis](./bitburner.goanalysis.md) > [getControlledEmptyNodes](./bitburner.goanalysis.getcontrolledemptynodes.md)
|
|
|
|
## GoAnalysis.getControlledEmptyNodes() method
|
|
|
|
Returns 'X' for black, 'O' for white, or '?' for each empty point to indicate which player controls that empty point. If no single player fully encircles the empty space, it is shown as contested with '?'. "\#" are dead nodes that are not part of the subnet.
|
|
|
|
Takes an optional boardState argument; by default uses the current board state.
|
|
|
|
Filled points of any color are indicated with '.'
|
|
|
|
In this example, white encircles some space in the top-left, black encircles some in the top-right, and between their routers is contested space in the center: <pre lang="javascript"> \[ "OO..?", "OO.?.", "O.?.X", ".?.XX", "?..X\#", \] </pre>
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
getControlledEmptyNodes(boardState?: string[]): string[];
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| boardState | string\[\] | _(Optional)_ |
|
|
|
|
**Returns:**
|
|
|
|
string\[\]
|
|
|
|
## Remarks
|
|
|
|
RAM cost: 16 GB (This is intentionally expensive; you can derive this info from just getBoardState() )
|
|
|