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) > [getOpponent](./bitburner.go.getopponent.md)
|
|
|
|
|
|
|
|
## Go.getOpponent() method
|
|
|
|
|
2023-12-26 17:53:27 +01:00
|
|
|
Returns the name of the opponent faction in the current subnet.
|
2023-12-26 17:45:27 +01:00
|
|
|
|
|
|
|
**Signature:**
|
|
|
|
|
|
|
|
```typescript
|
2024-03-28 06:02:53 +01:00
|
|
|
getOpponent(): GoOpponent | "No AI";
|
2023-12-26 17:45:27 +01:00
|
|
|
```
|
|
|
|
**Returns:**
|
|
|
|
|
2024-03-28 06:02:53 +01:00
|
|
|
[GoOpponent](./bitburner.goopponent.md) \| "No AI"
|
2023-12-26 17:45:27 +01:00
|
|
|
|