2023-12-26 17:45:27 +01:00
|
|
|
<!-- 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
|
|
|
|
|
2024-08-04 22:09:50 +02:00
|
|
|
Make a move on the IPvGO subnet game board, and await the opponent's response. x:0 y:0 represents the bottom-left corner of the board in the UI.
|
2023-12-26 17:45:27 +01:00
|
|
|
|
|
|
|
**Signature:**
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
makeMove(
|
|
|
|
x: number,
|
|
|
|
y: number,
|
|
|
|
): Promise<{
|
2024-03-19 19:07:15 +01:00
|
|
|
type: "move" | "pass" | "gameOver";
|
|
|
|
x: number | null;
|
|
|
|
y: number | null;
|
2023-12-26 17:45:27 +01:00
|
|
|
}>;
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
|
|
|
| x | number | |
|
|
|
|
| y | number | |
|
|
|
|
|
|
|
|
**Returns:**
|
|
|
|
|
2024-03-19 19:07:15 +01:00
|
|
|
Promise<{ type: "move" \| "pass" \| "gameOver"; x: number \| null; y: number \| null; }>
|
2023-12-26 17:45:27 +01:00
|
|
|
|
2024-05-24 02:07:45 +02:00
|
|
|
a promise that contains the opponent move's x and y coordinates (or pass) in response, or an indication if the game has ended
|
2023-12-26 17:45:27 +01:00
|
|
|
|
|
|
|
## Remarks
|
|
|
|
|
|
|
|
RAM cost: 4 GB
|
|
|
|
|