mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 21:25:47 +01:00
14 lines
522 B
ReStructuredText
14 lines
522 B
ReStructuredText
|
attempt() Netscript Function
|
||
|
============================
|
||
|
|
||
|
.. js:function:: attempt(answer, fn[, hostname/ip=current ip])
|
||
|
|
||
|
:param answer: Solution for the contract
|
||
|
:param string fn: Filename of the contract
|
||
|
:param string hostname/ip: Hostname or IP of the server containing the contract.
|
||
|
Optional. Defaults to current server if not provided
|
||
|
|
||
|
Attempts to solve the Coding Contract with the provided solution.
|
||
|
|
||
|
:returns: Boolean indicating whether the solution was correct
|