mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-29 19:13:49 +01:00
fe87f1f628
* IPVGO: Explicitly link the generated API documentation in the algorithm design doc * IPVGO: Fix missing factions in netscript docs * IPVGO: Linting * IPVGO: Ensure resetBoardState() logs that a new game has started
36 lines
1.1 KiB
Markdown
36 lines
1.1 KiB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [Go](./bitburner.go.md) > [resetBoardState](./bitburner.go.resetboardstate.md)
|
|
|
|
## Go.resetBoardState() method
|
|
|
|
Gets new IPvGO subnet with the specified size owned by the listed faction, ready for the player to make a move. This will reset your win streak if the current game is not complete and you have already made moves.
|
|
|
|
Note that some factions will have a few routers on the subnet at this state.
|
|
|
|
opponent is "Netburners" or "Slum Snakes" or "The Black Hand" or "Tetrads" or "Daedalus" or "Illuminati" or "????????????",
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
resetBoardState(opponent: GoOpponent, boardSize: 5 | 7 | 9 | 13): string[] | undefined;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| opponent | [GoOpponent](./bitburner.goopponent.md) | |
|
|
| boardSize | 5 \| 7 \| 9 \| 13 | |
|
|
|
|
**Returns:**
|
|
|
|
string\[\] \| undefined
|
|
|
|
a simplified version of the board state as an array of strings representing the board columns. See ns.Go.getBoardState() for full details
|
|
|
|
## Remarks
|
|
|
|
RAM cost: 0 GB
|
|
|