bitburner-src/markdown/bitburner.codingcontract.attempt.md
Olivier Gagnon 2b79871c02 doc
2021-11-03 00:27:21 -04:00

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.