From feedca5bfc7805ea4738700a8bceb56e591be2f0 Mon Sep 17 00:00:00 2001 From: Mischa Untaga <99098079+MischaU8@users.noreply.github.com> Date: Sat, 30 Dec 2023 14:50:19 +0100 Subject: remove resign --- rtt-module.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/rtt-module.js b/rtt-module.js index 3f9c333..127507e 100755 --- a/rtt-module.js +++ b/rtt-module.js @@ -7,7 +7,6 @@ const { FuzzedDataProvider } = require("@jazzer.js/core") const RULES_JS_FILE = process.env.RTT_RULES || "rules.js" const NO_UNDO = process.env.NO_UNDO === 'true' -const NO_RESIGN = process.env.NO_RESIGN === 'true' const NO_SCHEMA = process.env.NO_SCHEMA === 'true' console.log(`Loading rtt-fuzzer RTT_RULES='${RULES_JS_FILE}'`) @@ -87,9 +86,6 @@ module.exports.fuzz = function(fuzzerInputData) { // remove `undo` from actions, useful to test for dead-ends delete actions['undo'] } - 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. @@ -118,11 +114,7 @@ module.exports.fuzz = function(fuzzerInputData) { } // console.log(active, action, args) try { - if (action !== "_resign") { - state = RULES.action(state, active, action, args) - } else { - state = RULES.resign(state, active) - } + state = RULES.action(state, active, action, args) } catch (e) { log_crash(game_setup, state, view, step, active, action, args) throw new RulesCrashError(e, e.stack) -- cgit v1.2.3