第一个
演示地址 https://tetrissolver.com/
github存储库地址:https://github.com/JozefJarosciak/TangramPuzzleSolver,点击绿色code按钮,选择zip格式下载
,然后解压缩,用浏览器打开里面的index.html即可。
修改index.html中如下按钮,取消只读属性。就可解决不同长宽的矩形覆盖。
<label for="grid-width">Grid Width:</label>
<input type="text" id="grid-width" name="grid-width" >
<label for="grid-height">Grid Height:</label>
<input type="text" id="grid-height" name="grid-height" >
例如,如下两种形状的覆盖

这里有一个类似的,但是能自由添加形状,适合解决aoc 2512
演示地址 https://cemulate.github.io/polyomino-solver/。


377

被折叠的 条评论
为什么被折叠?



