2019-03-03 04:08:54 +01:00
|
|
|
getDescription() Netscript Function
|
|
|
|
===================================
|
|
|
|
|
2021-03-12 08:51:56 +01:00
|
|
|
.. js:function:: getDescription(filename[, hostname=current hostname])
|
2019-03-03 04:08:54 +01:00
|
|
|
|
2021-03-12 08:51:56 +01:00
|
|
|
:RAM cost: 5 GB
|
|
|
|
:param string filename: Filename of the contract
|
|
|
|
:param string hostname: Hostname of the server containing the contract.
|
|
|
|
Optional. Defaults to current server if not provided
|
|
|
|
:returns: A string with the contract's text description
|
2019-03-03 04:08:54 +01:00
|
|
|
|
2021-03-12 08:51:56 +01:00
|
|
|
Get the full text description for the problem posed by the Coding Contract.
|
2019-03-03 04:08:54 +01:00
|
|
|
|
2021-03-12 08:51:56 +01:00
|
|
|
Example:
|
2021-03-07 10:13:37 +01:00
|
|
|
|
2021-03-12 08:51:56 +01:00
|
|
|
.. code-block:: javascript
|
|
|
|
|
2021-07-02 23:27:59 +02:00
|
|
|
codingcontract.getDescription("contract-123.cct", "home");
|