Skip to contents

Report whether the side to move is in check, checkmate or stalemate.

Usage

gm_status(position)

Arguments

position

A gm_position object.

Value

A length-1 character string: one of "normal", "check", "checkmate", "stalemate".

Examples

gm_status(gm_position())
#> [1] "normal"