mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-29 20:37:05 +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): boolean;
|
||||
attempt(answer: string[] | number, fn: string, host?: string): boolean;
|
||||
```
|
||||
|
||||
## 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. |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
@@ -28,5 +28,7 @@ True if the solution was correct, false otherwise.
|
||||
|
||||
## Remarks
|
||||
|
||||
10 GB
|
||||
RAM cost: 10 GB
|
||||
|
||||
Attempts to solve the Coding Contract with the provided solution.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user