getContractType() Netscript Function

getContractType(fn[, hostname/ip=current ip])
Arguments:
  • fn (string) – Filename of the contract
  • hostname/ip (string) – Hostname or IP of the server containing the contract. Optional. Defaults to current server if not provided

Returns a name describing the type of problem posed by the Coding Contract. (e.g. Find Largest Prime Factor, Total Ways to Sum, etc.)

Returns:A string with the contract’s problem type