This commit is contained in:
Olivier Gagnon
2021-11-03 00:27:21 -04:00
parent 37845c57c0
commit 2b79871c02
299 changed files with 3861 additions and 7125 deletions
@@ -4,21 +4,21 @@
## CodingContract.attempt() method
Attempts to solve the Coding Contract with the provided solution.
Attemps a coding contract.
<b>Signature:</b>
```typescript
attempt(answer: string | string[] | number, fn: string, host?: string, opts?: CodingAttemptOptions): boolean | string;
attempt(answer: string[] | number, fn: string, host?: string, opts?: CodingAttemptOptions): boolean | string;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| answer | string \| string\[\] \| number | Solution for the contract. |
| answer | string\[\] \| number | Solution for the contract. |
| fn | string | Filename of the contract. |
| host | string | Host or IP of the server containing the contract. Optional. Defaults to current server if not provided. |
| host | string | Host of the server containing the contract. Optional. Defaults to current server if not provided. |
| opts | [CodingAttemptOptions](./bitburner.codingattemptoptions.md) | Optional parameters for configuring function behavior. |
<b>Returns:</b>
@@ -29,5 +29,7 @@ True if the solution was correct, false otherwise. If the returnReward option is
## Remarks
10 GB
RAM cost: 10 GB
Attempts to solve the Coding Contract with the provided solution.