mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 23:53:48 +01:00
20 lines
486 B
Markdown
20 lines
486 B
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||
|
|
||
|
[Home](./index.md) > [bitburner](./bitburner.md) > [Go](./bitburner.go.md) > [getCurrentPlayer](./bitburner.go.getcurrentplayer.md)
|
||
|
|
||
|
## Go.getCurrentPlayer() method
|
||
|
|
||
|
Returns the color of the current player, or 'None' if the game is over.
|
||
|
|
||
|
**Signature:**
|
||
|
|
||
|
```typescript
|
||
|
getCurrentPlayer(): "White" | "Black" | "None";
|
||
|
```
|
||
|
**Returns:**
|
||
|
|
||
|
"White" \| "Black" \| "None"
|
||
|
|
||
|
"White" \| "Black" \| "None"
|
||
|
|