From 99f7a4cc7b6a3b30cc4a56c4221ceddf4cbb49fa Mon Sep 17 00:00:00 2001 From: catloversg <152669316+catloversg@users.noreply.github.com> Date: Fri, 22 Mar 2024 04:39:37 +0700 Subject: [PATCH] IPvGO: Fix API documentation (#1171) Proper fix for table pre layout --- markdown/bitburner.go.getboardstate.md | 2 +- markdown/bitburner.go.md | 2 +- src/ScriptEditor/NetscriptDefinitions.d.ts | 16 +++++++--------- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/markdown/bitburner.go.getboardstate.md b/markdown/bitburner.go.getboardstate.md index ed84ad0d5..dbeeadb2b 100644 --- a/markdown/bitburner.go.getboardstate.md +++ b/markdown/bitburner.go.getboardstate.md @@ -8,7 +8,7 @@ Retrieves a simplified version of the board state. "X" represents black pieces, For example, a 5x5 board might look like this: -
\[ "XX.O.", "X..OO", ".XO..", "XXO.\#", ".XO.\#", \]
+\[Retrieves a simplified version of the board state. "X" represents black pieces, "O" white, and "." empty points. "\#" are dead nodes that are not part of the subnet. (They are not territory nor open nodes.)
For example, a 5x5 board might look like this:
\[ "XX.O.", "X..OO", ".XO..", "XXO.\#", ".XO.\#", \]
Each string represents a vertical column on the board, and each character in the string represents a point.
Traditional notation for Go is e.g. "B,1" referring to second ("B") column, first rank. This is the equivalent of index \[1\]\[0\].
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.
| +| [getBoardState()](./bitburner.go.getboardstate.md) |Retrieves a simplified version of the board state. "X" represents black pieces, "O" white, and "." empty points. "\#" are dead nodes that are not part of the subnet. (They are not territory nor open nodes.)
For example, a 5x5 board might look like this:
\[
"XX.O.",
"X..OO",
".XO..",
"XXO.\#",
".XO.\#",
\]
Each string represents a vertical column on the board, and each character in the string represents a point.
Traditional notation for Go is e.g. "B,1" referring to second ("B") column, first rank. This is the equivalent of index \[1\]\[0\].
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.
| | [getCurrentPlayer()](./bitburner.go.getcurrentplayer.md) | Returns the color of the current player, or 'None' if the game is over. | | [getGameState()](./bitburner.go.getgamestate.md) | Gets the status of the current game. Shows the current player, current score, and the previous move coordinates. Previous move coordinates will be \[-1, -1\] for a pass, or if there are no prior moves. | | [getOpponent()](./bitburner.go.getopponent.md) | Returns the name of the opponent faction in the current subnet. | diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index 09b71310e..29fb3612a 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -3993,15 +3993,13 @@ export interface Go { * * For example, a 5x5 board might look like this: * - *
- * [
- * "XX.O.",
- * "X..OO",
- * ".XO..",
- * "XXO.#",
- * ".XO.#",
- * ]
- *
+ [