mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-29 12:27:07 +02:00
doc
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user