This script requires the use of a third party website, `dcode.fr`, which is a Mastermind solver (the real world version of Divine Discs). To use the solver, you must input the current moves in a certain syntax. This script generates that syntax from Divine Discs. It also allows you to quickly paste in your next move. After every guess, click 'Generate Syntax' for the updated code and repeat the process. This script should allow you to finish within 5 moves.






This was the first time I tried making a script purely out of Javascript without jQuery. It was hard but I learnt a lot.