IPVGO: Bugfixes (#1193)

* 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
This commit is contained in:
Michael Ficocelli
2024-03-28 01:02:53 -04:00
committed by GitHub
parent 8553bcb8fc
commit fe87f1f628
9 changed files with 34 additions and 14 deletions

View File

@@ -3926,7 +3926,14 @@ export interface Gang {
}
/** @public */
type GoOpponent = "Netburners" | "Slum Snakes" | "The Black Hand" | "Tetrads" | "Daedalus" | "Illuminati";
type GoOpponent =
| "Netburners"
| "Slum Snakes"
| "The Black Hand"
| "Tetrads"
| "Daedalus"
| "Illuminati"
| "????????????";
/**
* IPvGO api
@@ -4035,7 +4042,7 @@ export interface Go {
/**
* Returns the name of the opponent faction in the current subnet.
*/
getOpponent(): GoOpponent | "No AI" | "????????????";
getOpponent(): GoOpponent | "No AI";
/**
* Gets new IPvGO subnet with the specified size owned by the listed faction, ready for the player to make a move.
@@ -4044,7 +4051,7 @@ export interface Go {
*
* Note that some factions will have a few routers on the subnet at this state.
*
* opponent is "Netburners" or "Slum Snakes" or "The Black Hand" or "Daedalus" or "Illuminati",
* opponent is "Netburners" or "Slum Snakes" or "The Black Hand" or "Tetrads" or "Daedalus" or "Illuminati" or "????????????",
*
* @returns a simplified version of the board state as an array of strings representing the board columns. See ns.Go.getBoardState() for full details
*