mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-03-08 19:32:31 +01:00
901 B
901 B
Home > bitburner > CodingContract > attempt
CodingContract.attempt() method
Attempts to solve the Coding Contract with the provided solution.
Signature:
attempt(answer: string | string[] | number, fn: string, host?: Host): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
answer | string | string[] | number | |
fn | string | Filename of the contract. |
host | Host | Host or IP of the server containing the contract. Optional. Defaults to current server if not provided. |
Returns:
boolean
True if the solution was correct, false otherwise.
Remarks
10 GB - Solution for the contract.