This is a UserScript that tries to solve The Password Game, usually succeeding in just a few seconds.
I have not tested it too extensively; it may've broken since I made it. Sorry.
It's not always successful; the things that can impede its progress include:
It does not cheat by poking into the game's code; however, it does use several tables from it. All information is obtained via reading the HTML. Only the content of the input fields and the controls are modified directly (this behaves like pasting from the clipboard), and the necessary buttons are activated
To ensure consistency, the JavaScript Date object is spoofed so that the game always uses the same date and time. (This is equivalent to setting the time in your system settings)
Press the "Start" button to reload the page and start the bot and timer. You can press Shift to start without reloading, but that can desync Paul's timer. Explanations for what the bot is currently doing are displayed in the bottom-right corner.
To compile this project, you'll need Node and Deno.
npm install
to install the library used for character-counting.deno run -A ./compiler/build.ts
.password-game-tas.user.js
into your favourite UserScript extension.