From 44bf3cb101e1fc87ca76848faa123d0620d5b2b2 Mon Sep 17 00:00:00 2001 From: danielyxie Date: Mon, 1 Jul 2019 20:39:12 -0700 Subject: [PATCH] Fixed GH Issue #641 --- doc/source/basicgameplay/codingcontracts.rst | 2 ++ src/Constants.ts | 15 ++------------- src/data/codingcontracttypes.ts | 2 ++ 3 files changed, 6 insertions(+), 13 deletions(-) diff --git a/doc/source/basicgameplay/codingcontracts.rst b/doc/source/basicgameplay/codingcontracts.rst index 657111daa..98f2feb72 100644 --- a/doc/source/basicgameplay/codingcontracts.rst +++ b/doc/source/basicgameplay/codingcontracts.rst @@ -214,6 +214,8 @@ The list contains the name of (i.e. the value returned by | | | | | | | The answer should be provided as an array of strings containing the valid expressions. | | | | | +| | | NOTE: Numbers in an expression cannot have leading 0's | +| | | | | | | Examples: | | | | Input: digits = "123", target = 6 | | | | Output: ["1+2+3", "1*2*3"] | diff --git a/src/Constants.ts b/src/Constants.ts index 305101fcd..a7d153dcc 100644 --- a/src/Constants.ts +++ b/src/Constants.ts @@ -221,18 +221,7 @@ export let CONSTANTS: IMap = { LatestUpdate: ` - v0.47.1 - * Stock Market changes: - ** Transactions no longer influence stock prices (but they still influence forecast) - ** Changed the way stocks behave, particularly with regard to how the stock forecast occasionally "flips" - ** Hacking & growing a server can potentially affect the way the corresponding stock's forecast changes - ** Working for a company positively affects the way the corresponding stock's forecast changes - - * Scripts now start/stop instantly - * Improved performance when starting up many copies of a new NetscriptJS script (by Ornedan) - * Improved performance when killing scripts - * Dialog boxes can now be closed with the ESC key (by jaguilar) - * NetscriptJS scripts should now be "re-compiled" if their dependencies change (by jaguilar) - * write() function should now properly cause NetscriptJS scripts to "re-compile" (by jaguilar) + v0.47.2 + * ` } diff --git a/src/data/codingcontracttypes.ts b/src/data/codingcontracttypes.ts index f3d533ac9..02074ca84 100644 --- a/src/data/codingcontracttypes.ts +++ b/src/data/codingcontracttypes.ts @@ -841,6 +841,8 @@ export const codingContractTypesMetadata: ICodingContractTypeMetadata[] = [ "The data provided by this problem is an array with two elements. The first element", "is the string of digits, while the second element is the target number:\n\n", `["${digits}", ${target}]\n\n`, + "NOTE: Numbers in the expression cannot have leading 0's. In other words,", + `"1+01" is not a valid expression`, "Examples:\n\n", `Input: digits = "123", target = 6\n`, `Output: ["1+2+3", "1*2*3"]\n\n`,