mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-23 22:52:29 +01:00
23 lines
789 B
Markdown
23 lines
789 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [Go](./bitburner.go.md) > [getGameState](./bitburner.go.getgamestate.md)
|
|
|
|
## Go.getGameState() method
|
|
|
|
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.
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
getGameState(): {
|
|
currentPlayer: "White" | "Black" | "None";
|
|
whiteScore: number;
|
|
blackScore: number;
|
|
previousMove: [number, number] | null;
|
|
};
|
|
```
|
|
**Returns:**
|
|
|
|
{ currentPlayer: "White" \| "Black" \| "None"; whiteScore: number; blackScore: number; previousMove: \[number, number\] \| null; }
|
|
|