Releases: jovialen/xadrez
Releases · jovialen/xadrez
v0.1.0
Release 0.1.0
Releasing this as it is right now as I'm not sure I'll continue with this project.
Features
- Board evaluation
- NNUE position evaluation (feature)
- HCE position evaluation
- Legal move generation
- Pregenerated bitboard moves
- Magic tables
- Fen parsing
- Perft testing
- Best move searching
- Checkmate detection
- Draw detection
- 50 move rule
- Stalemate
Documentation
Can be generated using the cargo doc command.
Usage of xadrez_cli
quitorqorexit- Quitmove <lan move>- Make thelan moveon the board.m <lan move>for short.moves- Print all legal movesdisplay (<legal>)- Prints the board. Fills the empty squares you can move to withlegal.d (<legal>)for short.position (fen | startpos) (<fen>)- Print the fen position. Sets the board to the startpos ifstartpos, or to thefenif fen.perft <depth>- Perform a perft test to the givendepth.undo- Undo the last changeevaluate- Evaluate the positionstate- Get the state of the board (playing,draworcheckmate)search (<time ms>) (<depth>)- Search for the best move. Stop search after<time ms>milliseconds or upon reaching depth<depth>.play (<moves>) (<time ms>) (<depth>)- Same as search, but makes the move it finds and repeats<moves>times.