isLegal

Returns true if the evaluated Move is legal in the current position, and false otherwise.

Return

true if the move is a legal move, false otherwise

Since

1.0.0-beta.1

Author

lunalobos

Parameters

move

the move to evaluate


fun Position.isLegal(move: String, notation: Notation = Notation.UCI): Boolean

Returns true if the move specified in the given notation is legal in the current position. If no notation is specified, Notation.UCI is assumed.

Return

true if the move is a legal move, false otherwise

Since

1.0.0-beta.1

Author

lunalobos

Parameters

move

the move string

notation

the move string notation