Note: this does not solve your puzzles for you. If you want to take all the fun out of puzzle-solving, go download this other script.
I casually mentioned that I had rewritten some of the javascript / css for witchess.php via an ASH script to help with the solving process.
The main things this adds are
This does not (yet?) handle marking oversatisfied / undersatisfied edge constraints or cycle detection. I can't think of other features I'd really want in this (maybe a confirm on reset?), so now seems like a reasonable time to share.
To use: put witchess.ash in your $MAFIAROOT/relay folder. Then go solve a witchess puzzle.
Requires r16800 for multi-line string support; otherwise, you can replace \\\n with \n globally, and it should work exactly the same.
I casually mentioned that I had rewritten some of the javascript / css for witchess.php via an ASH script to help with the solving process.
The main things this adds are
- Color regions, with a separation of at least two between identically colored regions.
- Count region size (and constraints) as a tooltip.
- Allow for illegal moves (i.e. moving over a gap) via arrow keys, and denote when this is done (corresponding segments are colored red).
- Add a third state when clicking on lines (for visually separating regions, or marking segments as unusable, or whatever else you want).
- Visually indicate when a node has too many or too few adjacent active segments (orange if too many, pale blue if too few).
- Fix a visual bug with the reset button.
This does not (yet?) handle marking oversatisfied / undersatisfied edge constraints or cycle detection. I can't think of other features I'd really want in this (maybe a confirm on reset?), so now seems like a reasonable time to share.
To use: put witchess.ash in your $MAFIAROOT/relay folder. Then go solve a witchess puzzle.
Requires r16800 for multi-line string support; otherwise, you can replace \\\n with \n globally, and it should work exactly the same.
Attachments
Last edited: