mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 09:33:49 +01:00
40 lines
1008 B
Markdown
40 lines
1008 B
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||
|
|
||
|
[Home](./index.md) > [bitburner](./bitburner.md) > [Go](./bitburner.go.md) > [makeMove](./bitburner.go.makemove.md)
|
||
|
|
||
|
## 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:**
|
||
|
|
||
|
```typescript
|
||
|
makeMove(
|
||
|
x: number,
|
||
|
y: number,
|
||
|
): Promise<{
|
||
|
type: "invalid" | "move" | "pass" | "gameOver";
|
||
|
x: number;
|
||
|
y: number;
|
||
|
success: boolean;
|
||
|
}>;
|
||
|
```
|
||
|
|
||
|
## Parameters
|
||
|
|
||
|
| Parameter | Type | Description |
|
||
|
| --- | --- | --- |
|
||
|
| x | number | |
|
||
|
| y | number | |
|
||
|
|
||
|
**Returns:**
|
||
|
|
||
|
Promise<{ type: "invalid" \| "move" \| "pass" \| "gameOver"; x: number; y: number; success: boolean; }>
|
||
|
|
||
|
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
|
||
|
|