mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 23:53:48 +01:00
fe87f1f628
* IPVGO: Explicitly link the generated API documentation in the algorithm design doc * IPVGO: Fix missing factions in netscript docs * IPVGO: Linting * IPVGO: Ensure resetBoardState() logs that a new game has started
18 lines
444 B
Markdown
18 lines
444 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [Go](./bitburner.go.md) > [getOpponent](./bitburner.go.getopponent.md)
|
|
|
|
## Go.getOpponent() method
|
|
|
|
Returns the name of the opponent faction in the current subnet.
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
getOpponent(): GoOpponent | "No AI";
|
|
```
|
|
**Returns:**
|
|
|
|
[GoOpponent](./bitburner.goopponent.md) \| "No AI"
|
|
|