A Javascript Chinese chess/cchess/Xiangqi library for Xiangqi move generation/validation, piece placement/movement, and check/checkmate/draw detection
BSD 2-Clause "Simplified" License
25
stars
11
forks
source link
How can we use this in react? Thanks #6
Open
tungleanh92 opened 2 years ago
copy code in xiangqi.js file, paste it somewhere in your project, then add "export" before const Xiangqi = function(fen) line. Import and use