This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fs from 'fs'; | |
import axios from 'axios'; | |
import readline from 'readline'; | |
const config = { | |
score_duplicate_letters: true, | |
dictionary_url: 'https://gist.githubusercontent.com/BideoWego/60fbd40d5d1f0f1beca11ba95221dd38/raw/58fb4cce910fbf5fa67a2f0f1f619c09d7b1b373/dictionary.json' | |
} | |
export default class WordleSolver { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//UI Script | |
function callFunctionJSON(className, fnName, params, callback){ | |
var cl = new GlideAjax(className); | |
cl.addParam('sysparm_name', fnName); | |
if (params){ | |
Object.keys(params).forEach(function(k){ | |
cl.addParam('sysparm_' + k, params[k]); | |
}); | |
} | |
cl.getXMLAnswer(function(resp){ |