mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 01:33:54 +01:00
25 lines
1.4 KiB
Markdown
25 lines
1.4 KiB
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|||
|
|
|||
|
[Home](./index.md) > [bitburner](./bitburner.md) > [CodingContract](./bitburner.codingcontract.md)
|
|||
|
|
|||
|
## CodingContract interface
|
|||
|
|
|||
|
|
|||
|
<b>Signature:</b>
|
|||
|
|
|||
|
```typescript
|
|||
|
interface CodingContract
|
|||
|
```
|
|||
|
|
|||
|
## Methods
|
|||
|
|
|||
|
| Method | Description |
|
|||
|
| --- | --- |
|
|||
|
| [attempt(answer, fn, host)](./bitburner.codingcontract.attempt.md) | Attempts to solve the Coding Contract with the provided solution. |
|
|||
|
| [attempt(answer, fn, host, opts)](./bitburner.codingcontract.attempt_1.md) | Attempts to solve the Coding Contract with the provided solution. |
|
|||
|
| [getContractType(fn, host)](./bitburner.codingcontract.getcontracttype.md) | Returns a name describing the type of problem posed by the Coding Contract. (e.g. Find Largest Prime Factor, Total Ways to Sum, etc.) |
|
|||
|
| [getData(fn, host)](./bitburner.codingcontract.getdata.md) | Get the data associated with the specific Coding Contract. Note that this is not the same as the contract’s description. This is just the data that the contract wants you to act on in order to solve |
|
|||
|
| [getDescription(fn, host)](./bitburner.codingcontract.getdescription.md) | Get the full text description for the problem posed by the Coding Contract. |
|
|||
|
| [getNumTriesRemaining(fn, host)](./bitburner.codingcontract.getnumtriesremaining.md) | Get the number of tries remaining on the contract before it self-destructs. |
|
|||
|
|