# 华容道 ![](https://s2.loli.net/2025/06/19/j74vTFxC2fQwRsO.png) [https://www.565455.xyz/projects/hrd/](https://www.565455.xyz/projects/hrd/) 这是一个html5做的华容道游戏,点击方块来把方块移到空位,最后把所有数字方块顺序排列即可获得胜利。 分数计算机制 ```javascript // 每80毫秒进行nav刷新 function rend_nav(){ if(start){ let time = (((new Date()).getTime() - startTime)/1000).toFixed(2); document.getElementById("sec").innerText = String(time); document.getElementById("step").innerText = String(step); document.getElementById("sc").innerText = String((1/(1+(step/10)*(time/60))*1000).toFixed(2)); } } ``` 分数=1/(1+(步数/10)\*(时长/60))\*1000 随着步数增多和时间增加,分数会呈反比例下降。 --- **本项目支持作弊** 通过链接参数`t`的设置可以修改默认打乱步数。 例如`https://www.565455.xyz/projects/hrd/?t=5`代表仅打乱5步。