Skip to content

Commit

Permalink
piece selected mathematical formula
Browse files Browse the repository at this point in the history
  • Loading branch information
atopx committed Nov 1, 2023
1 parent 841997e commit e18ef88
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@
![系统设置](./docs/doc_setting.png)


# 计算鼠标选择的点是否在棋子范围内
- a: 鼠标选择点
- b: 棋子圆心
- r: 棋子半径

$$ \sqrt {\left | {ax-bx} \right |^{2}+\left | {xy-by} \right |^{2}}\, >\, r $$


# 参考

象棋规范协议: https://www.xqbase.com/protocol.htm
象棋规范协议: https://www.xqbase.com/protocol.htm

0 comments on commit e18ef88

Please sign in to comment.