You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a colored circle indicator to the specified point. These indicators are removed once a move is played.
8
+
9
+
**Signature:**
10
+
11
+
```typescript
12
+
highlightPoint(x, y, color="", text=""): void;
13
+
```
14
+
15
+
## Parameters
16
+
17
+
| Parameter | Type | Description |
18
+
| --- | --- | --- |
19
+
| x | (not declared) | the x coordinate to highlight |
20
+
| y | (not declared) | the y coordinate to highlight |
21
+
| color | (not declared) |_(Optional)_ optional: the color to use for the circle. Can be given an RGB string like "\#FFF000", or "none" to clear it, or one of these color names from the selected theme: "hack" (green), "hp" (red), "money" (yellow), "int" (blue), "cha" (purple) |
22
+
| text | (not declared) |_(Optional)_ optional: text to add to the node (replaces the default A.1 or B5 seen on hover). Should be kept short to fit well. |
| [getValidMoves(boardState, priorBoardState, playAsWhite)](./bitburner.goanalysis.getvalidmoves.md) | <p>Shows if each point on the board is a valid move for the player. By default, analyzes the current board state. Takes an optional boardState (and an optional prior-move boardState, if desired) to analyze a custom board.</p><p>The true/false validity of each move can be retrieved via the X and Y coordinates of the move. <code>const validMoves = ns.go.analysis.getValidMoves();</code></p><p><code>const moveIsValid = validMoves[x][y];</code></p><p>Note that the \[0\]\[0\] point is shown on the bottom-left on the visual board (as is traditional), and each string represents a vertical column on the board. In other words, the printed example above can be understood to be rotated 90 degrees clockwise compared to the board UI as shown in the IPvGO subnet tab.</p><p>Also note that, when given a custom board state, only one prior move can be analyzed. This means that the superko rules (no duplicate board states in the full game history) is not supported; you will have to implement your own analysis for that.</p><p>playAsWhite is optional, and gets the current valid moves for the white player. Intended to be used when playing as white when the opponent is set to "No AI"</p> |
26
+
| [highlightPoint(x, y, color, text)](./bitburner.goanalysis.highlightpoint.md) |Addsacoloredcircleindicatortothespecifiedpoint. Theseindicatorsareremovedonceamoveisplayed. |
0 commit comments