diff --git a/markdown/bitburner.bladeburner.getstamina.md b/markdown/bitburner.bladeburner.getstamina.md index 1a6fa9705..379e11241 100644 --- a/markdown/bitburner.bladeburner.getstamina.md +++ b/markdown/bitburner.bladeburner.getstamina.md @@ -21,7 +21,7 @@ Array containing current stamina and max stamina. RAM cost: 4 GB -Returns an array with two elements: \* \[Current stamina, Max stamina\] +Returns an array with two elements: \[Current stamina, Max stamina\] ## Example diff --git a/markdown/bitburner.cloud.deleteserver.md b/markdown/bitburner.cloud.deleteserver.md index f9bee1d6c..424c31d13 100644 --- a/markdown/bitburner.cloud.deleteserver.md +++ b/markdown/bitburner.cloud.deleteserver.md @@ -56,7 +56,7 @@ True if successful, and false otherwise. ## Remarks -2.25 GB +RAM cost: 2.25 GB Deletes one of your cloud servers, which is specified by its hostname/ip. diff --git a/markdown/bitburner.cloud.getservernames.md b/markdown/bitburner.cloud.getservernames.md index 86a040e3d..2c9041918 100644 --- a/markdown/bitburner.cloud.getservernames.md +++ b/markdown/bitburner.cloud.getservernames.md @@ -56,5 +56,5 @@ Returns an array with the hostnames or IP addresses of all of the cloud servers ## Remarks -1.05 GB +RAM cost: 1.05 GB diff --git a/markdown/bitburner.go.getboardstate.md b/markdown/bitburner.go.getboardstate.md index 13c770a5c..c49fea972 100644 --- a/markdown/bitburner.go.getboardstate.md +++ b/markdown/bitburner.go.getboardstate.md @@ -8,20 +8,15 @@ 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.\#", - -\] - +``` +[ + "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\]. diff --git a/markdown/bitburner.go.getmovehistory.md b/markdown/bitburner.go.getmovehistory.md index eabc448fe..cffc55312 100644 --- a/markdown/bitburner.go.getmovehistory.md +++ b/markdown/bitburner.go.getmovehistory.md @@ -8,19 +8,15 @@ Returns all the prior moves in the current game, as an array of simple board sta For example, a single 5x5 prior move board might look like this: -\[ - -"XX.O.", - -"X..OO", - -".XO..", - -"XXO.\#", - -".XO.\#", - -\] +``` +[ + "XX.O.", + "X..OO", + ".XO..", + "XXO.#", + ".XO.#", +] +``` **Signature:** diff --git a/markdown/bitburner.go.md b/markdown/bitburner.go.md index d0d6851df..89c036ef9 100644 --- a/markdown/bitburner.go.md +++ b/markdown/bitburner.go.md @@ -99,20 +99,15 @@ 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.\#", - -\] - +``` +[ + "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\]. @@ -154,19 +149,15 @@ Returns all the prior moves in the current game, as an array of simple board sta For example, a single 5x5 prior move board might look like this: -\[ - -"XX.O.", - -"X..OO", - -".XO..", - -"XXO.\#", - -".XO.\#", - -\] +``` +[ + "XX.O.", + "X..OO", + ".XO..", + "XXO.#", + ".XO.#", +] +``` diff --git a/markdown/bitburner.goanalysis.clearallpointhighlights.md b/markdown/bitburner.goanalysis.clearallpointhighlights.md index 4b30b79fe..77b5ed138 100644 --- a/markdown/bitburner.goanalysis.clearallpointhighlights.md +++ b/markdown/bitburner.goanalysis.clearallpointhighlights.md @@ -15,3 +15,7 @@ clearAllPointHighlights(): void; void +## Remarks + +RAM cost: 0 GB + diff --git a/markdown/bitburner.goanalysis.getchains.md b/markdown/bitburner.goanalysis.getchains.md index 170c0e4b8..9fbc2f54f 100644 --- a/markdown/bitburner.goanalysis.getchains.md +++ b/markdown/bitburner.goanalysis.getchains.md @@ -4,13 +4,23 @@ ## GoAnalysis.getChains() method -Returns an ID for each point. All points that share an ID are part of the same network (or "chain"). Empty points are also given chain IDs to represent continuous empty space. Dead nodes are given the value `null.` +Returns an ID for each point. All points that share an ID are part of the same network (or "chain"). Empty points are also given chain IDs to represent continuous empty space. Dead nodes are given the value `null`. Takes an optional boardState argument; by default uses the current board state. The data from getChains() can be used with the data from getBoardState() to see which player (or empty) each chain is -For example, a 5x5 board might look like this. There is a large chain \#1 on the left side, smaller chains 2 and 3 on the right, and a large chain 0 taking up the center of the board.
\[ \[ 0,0,0,3,4\], \[ 1,0,0,3,3\], \[ 1,1,0,0,0\], \[null,1,0,2,2\], \[null,1,0,2,5\], \]
+For example, a 5x5 board might look like this. There is a large chain \#1 on the left side, smaller chains 2 and 3 on the right, and a large chain 0 taking up the center of the board.
+
+```
+[
+ [ 0,0,0,3,4],
+ [ 1,0,0,3,3],
+ [ 1,1,0,0,0],
+ [null,1,0,2,2],
+ [null,1,0,2,5],
+]
+```
**Signature:**
diff --git a/markdown/bitburner.goanalysis.getcontrolledemptynodes.md b/markdown/bitburner.goanalysis.getcontrolledemptynodes.md
index 0782d0129..9f3bca783 100644
--- a/markdown/bitburner.goanalysis.getcontrolledemptynodes.md
+++ b/markdown/bitburner.goanalysis.getcontrolledemptynodes.md
@@ -10,7 +10,17 @@ 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: \[ "OO..?", "OO.?.", "O.?.X", ".?.XX", "?..X\#", \]
+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:
+
+```
+[
+ "OO..?",
+ "OO.?.",
+ "O.?.X",
+ ".?.XX",
+ "?..X#",
+]
+```
**Signature:**
diff --git a/markdown/bitburner.goanalysis.getliberties.md b/markdown/bitburner.goanalysis.getliberties.md
index bf60df1ed..2d4acea7b 100644
--- a/markdown/bitburner.goanalysis.getliberties.md
+++ b/markdown/bitburner.goanalysis.getliberties.md
@@ -8,7 +8,17 @@ Returns a number for each point, representing how many open nodes its network/ch
Takes an optional boardState argument; by default uses the current board state.
-For example, a 5x5 board might look like this. The chain in the top-left touches 5 total empty nodes, and the one in the center touches four. The group in the bottom-right only has one liberty; it is in danger of being captured! \[ \[-1, 5,-1,-1, 2\], \[ 5, 5,-1,-1,-1\], \[-1,-1, 4,-1,-1\], \[ 3,-1,-1, 3, 1\], \[ 3,-1,-1, 3, 1\], \]
+For example, a 5x5 board might look like this. The chain in the top-left touches 5 total empty nodes, and the one in the center touches four. The group in the bottom-right only has one liberty; it is in danger of being captured!
+
+```
+[
+ [-1, 5,-1,-1, 2],
+ [ 5, 5,-1,-1,-1],
+ [-1,-1, 4,-1,-1],
+ [ 3,-1,-1, 3, 1],
+ [ 3,-1,-1, 3, 1],
+]
+```
**Signature:**
diff --git a/markdown/bitburner.goanalysis.getstats.md b/markdown/bitburner.goanalysis.getstats.md
index cd98f26f5..6bd2f6e1e 100644
--- a/markdown/bitburner.goanalysis.getstats.md
+++ b/markdown/bitburner.goanalysis.getstats.md
@@ -8,7 +8,19 @@ Displays the game history, captured nodes, and gained bonuses for each opponent
The details are keyed by opponent name, in this structure:
- { : { wins: number, losses: number, winStreak: number, highestWinStreak: number, favor: number, bonusPercent: number, bonusDescription: string, } }
+```
+{
+ \[ \[ 0,0,0,3,4\], \[ 1,0,0,3,3\], \[ 1,1,0,0,0\], \[null,1,0,2,2\], \[null,1,0,2,5\], \]
+For example, a 5x5 board might look like this. There is a large chain \#1 on the left side, smaller chains 2 and 3 on the right, and a large chain 0 taking up the center of the board.
+
+```
+[
+ [ 0,0,0,3,4],
+ [ 1,0,0,3,3],
+ [ 1,1,0,0,0],
+ [null,1,0,2,2],
+ [null,1,0,2,5],
+]
+```
\[ "OO..?", "OO.?.", "O.?.X", ".?.XX", "?..X\#", \]
+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:
+
+```
+[
+ "OO..?",
+ "OO.?.",
+ "O.?.X",
+ ".?.XX",
+ "?..X#",
+]
+```
@@ -92,7 +112,17 @@ Returns a number for each point, representing how many open nodes its network/ch
Takes an optional boardState argument; by default uses the current board state.
-For example, a 5x5 board might look like this. The chain in the top-left touches 5 total empty nodes, and the one in the center touches four. The group in the bottom-right only has one liberty; it is in danger of being captured! \[ \[-1, 5,-1,-1, 2\], \[ 5, 5,-1,-1,-1\], \[-1,-1, 4,-1,-1\], \[ 3,-1,-1, 3, 1\], \[ 3,-1,-1, 3, 1\], \]
+For example, a 5x5 board might look like this. The chain in the top-left touches 5 total empty nodes, and the one in the center touches four. The group in the bottom-right only has one liberty; it is in danger of being captured!
+
+```
+[
+ [-1, 5,-1,-1, 2],
+ [ 5, 5,-1,-1,-1],
+ [-1,-1, 4,-1,-1],
+ [ 3,-1,-1, 3, 1],
+ [ 3,-1,-1, 3, 1],
+]
+```
@@ -107,7 +137,19 @@ Displays the game history, captured nodes, and gained bonuses for each opponent
The details are keyed by opponent name, in this structure:
- { : { wins: number, losses: number, winStreak: number, highestWinStreak: number, favor: number, bonusPercent: number, bonusDescription: string, } }
+```
+{
+
- * [
- * [ 0,0,0,3,4],
- * [ 1,0,0,3,3],
- * [ 1,1,0,0,0],
- * [null,1,0,2,2],
- * [null,1,0,2,5],
- * ]
- *
+ *
+ * ```
+ * [
+ * [ 0,0,0,3,4],
+ * [ 1,0,0,3,3],
+ * [ 1,1,0,0,0],
+ * [null,1,0,2,2],
+ * [null,1,0,2,5],
+ * ]
+ * ```
*
* @remarks
* RAM cost: 16 GB
@@ -5251,15 +5254,16 @@ export interface GoAnalysis {
*
* For example, a 5x5 board might look like this. The chain in the top-left touches 5 total empty nodes, and the one
* in the center touches four. The group in the bottom-right only has one liberty; it is in danger of being captured!
- *
- * [
- * [-1, 5,-1,-1, 2],
- * [ 5, 5,-1,-1,-1],
- * [-1,-1, 4,-1,-1],
- * [ 3,-1,-1, 3, 1],
- * [ 3,-1,-1, 3, 1],
- * ]
- *
+ *
+ * ```
+ * [
+ * [-1, 5,-1,-1, 2],
+ * [ 5, 5,-1,-1,-1],
+ * [-1,-1, 4,-1,-1],
+ * [ 3,-1,-1, 3, 1],
+ * [ 3,-1,-1, 3, 1],
+ * ]
+ * ```
*
* @remarks
* RAM cost: 16 GB
@@ -5281,15 +5285,16 @@ export interface GoAnalysis {
* 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:
- *
- * [
- * "OO..?",
- * "OO.?.",
- * "O.?.X",
- * ".?.XX",
- * "?..X#",
- * ]
- *
+ *
+ * ```
+ * [
+ * "OO..?",
+ * "OO.?.",
+ * "O.?.X",
+ * ".?.XX",
+ * "?..X#",
+ * ]
+ * ```
*
* @remarks
* RAM cost: 16 GB
@@ -5306,9 +5311,9 @@ export interface GoAnalysis {
*
* The details are keyed by opponent name, in this structure:
*
- *
- * \{
- * : \{
+ * ```
+ * {
+ * : {
* wins: number,
* losses: number,
* winStreak: number,
@@ -5316,9 +5321,12 @@ export interface GoAnalysis {
* favor: number,
* bonusPercent: number,
* bonusDescription: string,
- * \}
- * \}
- *
+ * }
+ * }
+ * ```
+ *
+ * @remarks
+ * RAM cost: 0 GB
*
* @returns A dictionary of opponent stats keyed by opponent name.
*/
@@ -5326,6 +5334,10 @@ export interface GoAnalysis {
/**
* Reset all win/loss and winstreak records for the No AI opponent.
+ *
+ * @remarks
+ * RAM cost: 0 GB
+ *
* @param resetAll - Optional. if true, reset win/loss records for all opponents. Leaves node power and bonuses unchanged. Defaults to false.
*/
resetStats(resetAll?: boolean): void;
@@ -5370,7 +5382,12 @@ export interface GoAnalysis {
*/
clearPointHighlight(x: number, y: number): void;
- /** Removes all highlights from the board. */
+ /**
+ * Removes all highlights from the board.
+ *
+ * @remarks
+ * RAM cost: 0 GB
+ */
clearAllPointHighlights(): void;
}
@@ -5601,19 +5618,15 @@ export interface Go {
*
* For example, a 5x5 board might look like this:
*
- *[
- *
- * "XX.O.",
- *
- * "X..OO",
- *
- * ".XO..",
- *
- * "XXO.#",
- *
- * ".XO.#",
- *
- *]
+ * ```
+ * [
+ * "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.
*
@@ -5633,19 +5646,15 @@ export interface Go {
*
* For example, a single 5x5 prior move board might look like this:
*
- *[
- *
- * "XX.O.",
- *
- * "X..OO",
- *
- * ".XO..",
- *
- * "XXO.#",
- *
- * ".XO.#",
- *
- *]
+ * ```
+ * [
+ * "XX.O.",
+ * "X..OO",
+ * ".XO..",
+ * "XXO.#",
+ * ".XO.#",
+ * ]
+ * ```
*
* @remarks
* RAM cost: 0 GB
@@ -8834,12 +8843,20 @@ export interface NS {
/**
* Open up a message box.
+ *
+ * @remarks
+ * RAM cost: 0 GB
+ *
* @param args - Value(s) to be alerted.
*/
alert(...args: any[]): void;
/**
* Queue a toast (bottom-right notification).
+ *
+ * @remarks
+ * RAM cost: 0 GB
+ *
* @param msg - Message in the toast.
* @param variant - Type of toast. Must be one of success, info, warning, error. Defaults to success.
* @param duration - Duration of toast in ms. Can also be `null` to create a persistent toast. Defaults to 2000.