Type Definition alcibiades::Value [] [src]

type Value = i16;

Evaluation value in centipawns.

Positive values mean that the position is favorable for the side to move. Negative values mean the position is favorable for the other side (not to move). A value of 0 means that the chances are equal. For example: a value of 100 might mean that the side to move is a pawn ahead.

Constants:

  • VALUE_UNKNOWN has the special meaning of "unknown value".

  • Values bigger than VALUE_EVAL_MAX designate a win by inevitable checkmate.

  • Values smaller than VALUE_EVAL_MIN designate a loss by inevitable checkmate.

  • VALUE_MAX designates a checkmate (a win).

    • VALUE_MAX - 1 designates an inevitable checkmate (a win) in 1 half-move.

    • VALUE_MAX - 2 designates an inevitable checkmate (a win) in 2 half-moves.

    • and so forth.

  • VALUE_MIN designates a checkmate (a loss).

    • VALUE_MIN + 1 designates an inevitable checkmate (a loss) in 1 half-move.

    • VALUE_MIN + 2 designates an inevitable checkmate (a loss) in 2 half-moves.

    • and so forth.