notnil / chess

chess package for go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to check if a move is a capture or check?

FirePlank opened this issue · comments

so I'm trying to get some move ordering for my bot but I am not entirely sure how to check if a move is capture or a check.

There is a chess.Capture and a chess.Check obj and they say they require a movetag in order to work?

I was like okay how do I get a movetag and then I saw there is chess.Movetag() but IDK how that works

All I want to know if a move is capture or check

how do I check if a thing like this
game.MoveStr("e2e4")
is a check or a capture or neither?

Would love to have an easier implementation like a simple command is_check or is_capture done for this libary.