Skip to content

Improve quiescence search with swap algorithm #2

Description

@mlagerberg

When a square is attacked (i.e. not a 'quiet' square), don't do a regular search of x more moves, but use a simple swap algorithm.

The swap algorithm involves: using a negamax algorithm for the counter-attacks and ignoring if the following attacking moves are valid (e.g. produce check), and even allow for x-ray attacks. Excellent example here: http://chessprogramming.wikispaces.com/SEE+-+The+Swap+Algorithm

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions