mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
work on doc
This commit is contained in:
32
markdown/bitburner.codingcontract.attempt.md
Normal file
32
markdown/bitburner.codingcontract.attempt.md
Normal file
@@ -0,0 +1,32 @@
|
||||
<!-- 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 to solve the Coding Contract with the provided solution.
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
attempt(answer: string | string[] | number, fn: string, host?: Host): boolean;
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| answer | string \| string\[\] \| number | |
|
||||
| fn | string | Filename of the contract. |
|
||||
| host | [Host](./bitburner.host.md) | Host or IP of the server containing the contract. Optional. Defaults to current server if not provided. |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
boolean
|
||||
|
||||
True if the solution was correct, false otherwise.
|
||||
|
||||
## Remarks
|
||||
|
||||
10 GB - Solution for the contract.
|
||||
|
||||
Reference in New Issue
Block a user