From 3d854257476f8541c48cf59f3f71b78d317734b8 Mon Sep 17 00:00:00 2001 From: Mischa Untaga <99098079+MischaU8@users.noreply.github.com> Date: Tue, 12 Dec 2023 19:59:36 +0100 Subject: trim whitespace --- rtt-module.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'rtt-module.js') 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)) { -- cgit v1.2.3