mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-03-07 19:14:37 +01:00
891 B
891 B
Home > bitburner > CodingContract > attempt
CodingContract.attempt() method
Attemps a coding contract.
Signature:
attempt(answer: string[] | number, fn: string, host?: string): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
answer | string[] | number | Solution for the contract. |
fn | string | Filename of the contract. |
host | string | Host 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
RAM cost: 10 GB
Attempts to solve the Coding Contract with the provided solution.