mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
DOCUMENTATION: Use alternative fix for newline issue in IPvGO docs (#2350)
This commit is contained in:
@@ -6,8 +6,5 @@ indent_size = 2
|
|||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
|
|
||||||
[src/ScriptEditor/NetscriptDefinitions.d.ts]
|
|
||||||
trim_trailing_whitespace = false
|
|
||||||
|
|
||||||
[*.md]
|
[*.md]
|
||||||
trim_trailing_whitespace = false
|
trim_trailing_whitespace = false
|
||||||
|
|||||||
@@ -151,12 +151,6 @@ upstream/master
|
|||||||
- Keep code-changes on a branch as small as possible. This makes it easier for code review. Each branch should be its own independent feature.
|
- Keep code-changes on a branch as small as possible. This makes it easier for code review. Each branch should be its own independent feature.
|
||||||
- Regularly rebase your branch against `dev` to make sure you have the latest updates pulled.
|
- Regularly rebase your branch against `dev` to make sure you have the latest updates pulled.
|
||||||
|
|
||||||
### Special Exceptions
|
|
||||||
|
|
||||||
- In `src/ScriptEditor/NetscriptDefinitions.d.ts`, there are two specially-formatted go boards with two trailing whitespaces.
|
|
||||||
Make sure your editor does not automatically format those examples.
|
|
||||||
You can look for changes to that part using `git diff` to make sure the whitespaces are still present.
|
|
||||||
|
|
||||||
## Running locally
|
## Running locally
|
||||||
|
|
||||||
Install
|
Install
|
||||||
|
|||||||
@@ -8,7 +8,19 @@ Retrieves a simplified version of the board state. "X" represents black pieces,
|
|||||||
|
|
||||||
For example, a 5x5 board might look like this:
|
For example, a 5x5 board might look like this:
|
||||||
|
|
||||||
\[<br/> "XX.O.",<br/> "X..OO",<br/> ".XO..",<br/> "XXO.\#",<br/> ".XO.\#",<br/> \]
|
\[
|
||||||
|
|
||||||
|
"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.
|
Each string represents a vertical column on the board, and each character in the string represents a point.
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,19 @@ 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:
|
For example, a single 5x5 prior move board might look like this:
|
||||||
|
|
||||||
\[<br/> "XX.O.",<br/> "X..OO",<br/> ".XO..",<br/> "XXO.\#",<br/> ".XO.\#",<br/> \]
|
\[
|
||||||
|
|
||||||
|
"XX.O.",
|
||||||
|
|
||||||
|
"X..OO",
|
||||||
|
|
||||||
|
".XO..",
|
||||||
|
|
||||||
|
"XXO.\#",
|
||||||
|
|
||||||
|
".XO.\#",
|
||||||
|
|
||||||
|
\]
|
||||||
|
|
||||||
**Signature:**
|
**Signature:**
|
||||||
|
|
||||||
|
|||||||
@@ -99,7 +99,19 @@ Retrieves a simplified version of the board state. "X" represents black pieces,
|
|||||||
|
|
||||||
For example, a 5x5 board might look like this:
|
For example, a 5x5 board might look like this:
|
||||||
|
|
||||||
\[<br/> "XX.O.",<br/> "X..OO",<br/> ".XO..",<br/> "XXO.\#",<br/> ".XO.\#",<br/> \]
|
\[
|
||||||
|
|
||||||
|
"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.
|
Each string represents a vertical column on the board, and each character in the string represents a point.
|
||||||
|
|
||||||
@@ -142,7 +154,19 @@ 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:
|
For example, a single 5x5 prior move board might look like this:
|
||||||
|
|
||||||
\[<br/> "XX.O.",<br/> "X..OO",<br/> ".XO..",<br/> "XXO.\#",<br/> ".XO.\#",<br/> \]
|
\[
|
||||||
|
|
||||||
|
"XX.O.",
|
||||||
|
|
||||||
|
"X..OO",
|
||||||
|
|
||||||
|
".XO..",
|
||||||
|
|
||||||
|
"XXO.\#",
|
||||||
|
|
||||||
|
".XO.\#",
|
||||||
|
|
||||||
|
\]
|
||||||
|
|
||||||
|
|
||||||
</td></tr>
|
</td></tr>
|
||||||
|
|||||||
40
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
40
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@@ -4935,13 +4935,19 @@ export interface Go {
|
|||||||
*
|
*
|
||||||
* For example, a 5x5 board might look like this:
|
* For example, a 5x5 board might look like this:
|
||||||
*
|
*
|
||||||
[<br/>
|
*[
|
||||||
"XX.O.",<br/>
|
*
|
||||||
"X..OO",<br/>
|
* "XX.O.",
|
||||||
".XO..",<br/>
|
*
|
||||||
"XXO.#",<br/>
|
* "X..OO",
|
||||||
".XO.#",<br/>
|
*
|
||||||
]
|
* ".XO..",
|
||||||
|
*
|
||||||
|
* "XXO.#",
|
||||||
|
*
|
||||||
|
* ".XO.#",
|
||||||
|
*
|
||||||
|
*]
|
||||||
*
|
*
|
||||||
* Each string represents a vertical column on the board, and each character in the string represents a point.
|
* Each string represents a vertical column on the board, and each character in the string represents a point.
|
||||||
*
|
*
|
||||||
@@ -4961,13 +4967,19 @@ export interface Go {
|
|||||||
*
|
*
|
||||||
* For example, a single 5x5 prior move board might look like this:
|
* For example, a single 5x5 prior move board might look like this:
|
||||||
*
|
*
|
||||||
[<br/>
|
*[
|
||||||
"XX.O.",<br/>
|
*
|
||||||
"X..OO",<br/>
|
* "XX.O.",
|
||||||
".XO..",<br/>
|
*
|
||||||
"XXO.#",<br/>
|
* "X..OO",
|
||||||
".XO.#",<br/>
|
*
|
||||||
]
|
* ".XO..",
|
||||||
|
*
|
||||||
|
* "XXO.#",
|
||||||
|
*
|
||||||
|
* ".XO.#",
|
||||||
|
*
|
||||||
|
*]
|
||||||
*/
|
*/
|
||||||
getMoveHistory(): string[][];
|
getMoveHistory(): string[][];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user