mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-08 08:43:53 +01:00
973 B
973 B
Home > bitburner > Go > makeMove
Go.makeMove() method
Make a move on the IPvGO subnet gameboard, and await the opponent's response. x:0 y:0 represents the bottom-left corner of the board in the UI.
Signature:
makeMove(
x: number,
y: number,
): Promise<{
type: "move" | "pass" | "gameOver";
x: number | null;
y: number | null;
}>;
Parameters
Parameter | Type | Description |
---|---|---|
x | number | |
y | number |
Returns:
Promise<{ type: "move" | "pass" | "gameOver"; x: number | null; y: number | null; }>
a promise that contains if your move was valid and successful, the opponent move's x and y coordinates (or pass) in response, or an indication if the game has ended
Remarks
RAM cost: 4 GB