Skip to content

Suicide if it can checkmate you in 1 move #8

Description

@theronic

Chessmate allows itself to be mated if it sees a counter-mate in one or two moves, e.g.:
image

A simple solution would be to double the value of its own king, but a better design should incorporate a test for checkmate in every position. I fear this may significantly slow down the evaluation function.

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

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions