I had this script lying around written a few years ago, of a version of Mastermind that's adversarial. It doesn't really hide a secret combination for you to find, it just pretends there is one and gives you the worst possible answer on any guess you make, i.e. the answer that would eliminate the fewest possible combination. So the hidden combination is effectively what you (partially you, there's also a bit of luck involved) force it to be through your questions.
I recently gave the old Lua script to an LLM and asked it to turn it into a website instead, here's the result after a few iterations of asking it to fix various issues and improve the usability:
https://annoyingmind.inshame.com/
It works quite well. If you are on a PC, then opening the developer tools (maybe by pressing Ctrl+Shift+I) will let you see some debugging information in the Console, like how many possible combinations there still are at any point in the game, and up to 6 examples of those possible combinations.
No comments:
Post a Comment