[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" \| "????????????"