Seeking another 'utility function' ...

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

guyhaw

Seeking another 'utility function' ...

Post by guyhaw »

I am looking for a utility which will:
-take as input a FEN position + a set of moves, and
- confirm (or not) that the moves are all legally playable from the position
All information welcome, and thanks in advance
Guy
ZeroOne

The SAN Kit

Post by ZeroOne »

You might wish to try the SAN Kit. I read about it in an interesting article, Can a spam filter play chess? I believe the SAN Kit can compute all legal moves given a FEN string, so you just need to sort your candidate move list and the generated list and compare them.
guyhaw

Re: The SAN Kit

Post by guyhaw »

Thank re the 'SAN Kit': will investigate.
Only now do I realise that the moves I am checking are in LAN, which might add a slight wrinkle to proceedings.
Guy