- Add
get-status
command to check for turn, stalemate, and checkmate - Rename
apply-sequence
command toapply
- Rename
check-move
command totest-move
- Combine
all-targets
andget-targets
to single command with optional position flag
- Add
check-move
command
- Add
all-targets
command
- Add
get-targets
command - Remove
get
command
- Cargo library published to crates.io as
hexchess
- Add
applySequence
method - Prevent
apply
from being called with a valid but illegal move - To simplify type definitions,
findKing
,getPieceColor
andgetPositionColor
will now returnundefined
instead ofnull
- Error when characters exist after the promotion notation
- Fixed notation parsing edge cases
parseNotation
andparseHexchess
now returnundefined
when input is invalid, rather than erroring
- Add
findKing
method - Add
isCheckmate
method - Improved typescript definitions
- Fix self-check logic on opponent's turn
- Fix self-check logic when king is moved piece
- Add
isThreatened
method - Prohibit self-checking moves
- Fix en passant capture by non-pawns
- Remove regex parser to cut wasm binary from 1.6MB → 180KB
- Fix en passant capture not removing enemy piece