diff options
author | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-12-12 19:59:36 +0100 |
---|---|---|
committer | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-12-12 19:59:36 +0100 |
commit | 3d854257476f8541c48cf59f3f71b78d317734b8 (patch) | |
tree | bea9bcb1129c5c74c01884cfaaa86301ab47246f | |
parent | 39f2d421533fd3986e4c5c16a796f125338f543c (diff) | |
download | fuzzer-3d854257476f8541c48cf59f3f71b78d317734b8.tar.gz |
trim whitespace
-rwxr-xr-x | rtt-module.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rtt-module.js b/rtt-module.js index 6e63f04..099e143 100755 --- a/rtt-module.js +++ b/rtt-module.js @@ -32,7 +32,7 @@ module.exports.fuzz = function(fuzzerInputData) { // TODO randomize options const options = {} - + let game_setup = { "seed": seed, "scenario": scenario, @@ -68,7 +68,7 @@ module.exports.fuzz = function(fuzzerInputData) { throw new SchemaValidationError("View data fails schema validation") } } - + if (state.state === 'game_over') { break } @@ -77,12 +77,12 @@ module.exports.fuzz = function(fuzzerInputData) { log_crash(game_setup, state, view, step, active) throw new UnknownStateError(view.prompt) } - + if (!view.actions) { log_crash(game_setup, state, view, step, active) throw new NoMoreActionsError("No actions defined") } - + let actions = view.actions if (NO_UNDO && 'undo' in actions) { // remove `undo` from actions, useful to test for dead-ends @@ -91,7 +91,7 @@ module.exports.fuzz = function(fuzzerInputData) { if (!NO_RESIGN && RULES.resign) { actions['_resign'] = 1 } - + // Tor: view.actions["foo"] === 0 means the "foo" action is disabled (show the button in a disabled state) // Also ignoring the actions with `[]` as args, unsure about this but needed for Nevsky. for (const [key, value] of Object.entries(actions)) { |