Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New search rules #38

Open
gbtami opened this issue Jan 26, 2017 · 3 comments
Open

New search rules #38

gbtami opened this issue Jan 26, 2017 · 3 comments

Comments

@gbtami
Copy link
Contributor

gbtami commented Jan 26, 2017

Now scoutfish can search for positions where we expect given pieces exist on given squares using "sub-fen" but not for patterns where given piece exist on given rank/file or it's not there at all. Simple example is "white has an isolated a pawn" meaning white has a pawn somewhere in a2-a7 but not in b2-b7. It would be nice to have some syntax/rule to search for this kind of patterns.

@gbtami
Copy link
Contributor Author

gbtami commented Jan 27, 2017

A screenshot showing an isolated a pawn pattern in scid gui.
isolated_pawn

@mcostalba
Copy link
Owner

Pawns can have many properties: isolated, passed, doubled, etc..

Your request is a special case of a more general properties on pawns.

@gbtami
Copy link
Contributor Author

gbtami commented Jan 28, 2017

The isolated pawn was just an example. In "piece (not)exist on rank/file" pattern piece can be any type. Another example can be "connected rooks on rank 7" etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants