Skip to contents

Mate is scored in the thousands of centipawns so that it outranks any amount of material, which makes "lost 100.3 pawns" the literal but useless reading of walking into mate. Past the point where material stops being the story, say what actually happened instead.

Usage

format_loss(loss_cp)

Arguments

loss_cp

Centipawns lost, from game_move_losses().

Value

A short label such as "1.4 pawns" or "gets mated".