move

Retrieves the new Position that results from executing the provided legal Move. Throws a MoveException if the provided move is not legal in the current position.

Return

the new Position that results from executing the move

Since

1.0.0-beta.1

Author

lunalobos

Parameters

move

the move to play


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

Retrieves the new Position that results from executing the move specified in the given notation. Throws a MoveException if the move is not legal. If no notation is provided, Notation.UCI is assumed.

Return

the new Position that results from executing the move

Since

1.0.0-beta.1

Author

lunalobos

Parameters

move

the move string

notation

the move string notation