mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
Revert "Remove markdown from git tracking (#139)"
This reverts commit bbb6e3f309.
This commit is contained in:
40
markdown/bitburner.codingcontract.attempt.md
Normal file
40
markdown/bitburner.codingcontract.attempt.md
Normal file
@@ -0,0 +1,40 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [CodingContract](./bitburner.codingcontract.md) > [attempt](./bitburner.codingcontract.attempt.md)
|
||||
|
||||
## CodingContract.attempt() method
|
||||
|
||||
Attempts a coding contract.
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
attempt(
|
||||
answer: string | number | any[],
|
||||
filename: string,
|
||||
host?: string,
|
||||
opts?: CodingAttemptOptions,
|
||||
): boolean | string;
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| answer | string \| number \| any\[\] | Solution for the contract. |
|
||||
| filename | string | Filename of the contract. |
|
||||
| host | string | Hostname 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>
|
||||
|
||||
boolean \| string
|
||||
|
||||
True if the solution was correct, false otherwise. If the returnReward option is configured, then the function will instead return a string. If the contract is successfully solved, the string will contain a description of the contract’s reward. Otherwise, it will be an empty string.
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 10 GB
|
||||
|
||||
Attempts to solve the Coding Contract with the provided solution.
|
||||
|
||||
Reference in New Issue
Block a user