bitburner-src/markdown/bitburner.go.getcurrentplayer.md

486 B

Home > bitburner > Go > getCurrentPlayer

Go.getCurrentPlayer() method

Returns the color of the current player, or 'None' if the game is over.

Signature:

getCurrentPlayer(): "White" | "Black" | "None";

Returns:

"White" | "Black" | "None"

"White" | "Black" | "None"