Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.3 KB

bitburner.codingcontract.md

File metadata and controls

27 lines (19 loc) · 1.3 KB

Home > bitburner > CodingContract

CodingContract interface

Coding Contract API

Signature:

export interface CodingContract 

Methods

Method Description
attempt(answer, filename, host) Attempts a coding contract, returning a reward string on success or empty string on failure.
createDummyContract(type) Generate a dummy contract.
getContract(filename, host) Get various data about a specific contract.
getContractType(filename, host) Get the type of a coding contract.
getContractTypes() List all contract types.
getData(filename, host) Get the input data.
getDescription(filename, host) Get the description.
getNumTriesRemaining(filename, host) Get the number of attempts remaining.