提交 aca92922 编写于 作者: U u014301111

Sat Sep 14 19:21:00 CST 2024 inscode

上级 fa719f38
...@@ -102,6 +102,6 @@ async function playChess(item, row, col) { ...@@ -102,6 +102,6 @@ async function playChess(item, row, col) {
</p> </p>
</p> </p>
</div> </div>
<RandomTree :time="time" /> <!-- <RandomTree :time="time" /> -->
</template> </template>
...@@ -45,6 +45,7 @@ function inRange(n, start = 0, end) { ...@@ -45,6 +45,7 @@ function inRange(n, start = 0, end) {
} }
return n >= start && n < end return n >= start && n < end
} }
/** 在棋盘上 */
function inChessboard(ROW, COL){ function inChessboard(ROW, COL){
return function(row, col){ return function(row, col){
return inRange(row, ROW) && inRange(col, COL); return inRange(row, ROW) && inRange(col, COL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册