Closed jimmyyzr closed 3 years ago
Hi, I am now trying to detect the state when a promotion needs to be made. I wonder if there is a function that can return the piece chess piece name when I pass in a position? For example, target = 'a7'; var cur_piece = getPosition(target);.
target = 'a7'; var cur_piece = getPosition(target);
Hi, I am now trying to detect the state when a promotion needs to be made. I wonder if there is a function that can return the piece chess piece name when I pass in a position? For example,
target = 'a7'; var cur_piece = getPosition(target);
.