Skip to content

v0.1.0

Latest
Compare
Choose a tag to compare
@jovialen jovialen released this 07 Mar 09:19
· 15 commits to main since this release

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

  • quit or q or exit - Quit
  • move <lan move> - Make the lan move on the board. m <lan move> for short.
  • moves - Print all legal moves
  • display (<legal>) - Prints the board. Fills the empty squares you can move to with legal. d (<legal>) for short.
  • position (fen | startpos) (<fen>) - Print the fen position. Sets the board to the startpos if startpos, or to the fen if fen.
  • perft <depth> - Perform a perft test to the given depth.
  • undo - Undo the last change
  • evaluate - Evaluate the position
  • state - Get the state of the board (playing, draw or checkmate)
  • 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.