From 44177b06e051fda9b39dc12488426129e30c0ece Mon Sep 17 00:00:00 2001 From: DoormatIka Date: Mon, 26 Feb 2024 19:19:45 +0800 Subject: [PATCH 1/2] added quit command --- src/main.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 5f2aba0..e553a06 100644 --- a/src/main.rs +++ b/src/main.rs @@ -39,6 +39,10 @@ fn output_thread(out: UciMessage, bot: &mut BasicBot, toggle_ready_ok: &Arc { + std::process::exit(0); + } + UciMessage::Position { startpos, fen, @@ -115,6 +119,7 @@ fn output_thread(out: UciMessage, bot: &mut BasicBot, toggle_ready_ok: &Arc {} @@ -173,7 +178,8 @@ fn main() { | UciMessage::IsReady | UciMessage::Position { .. } | UciMessage::Go { .. } - | UciMessage::Stop => output_tx.send(uci_message), + | UciMessage::Stop + | UciMessage::Quit => output_tx.send(uci_message), // not supported, use position startpos moves e2e4 ... instead. // https://stackoverflow.com/questions/56528420/basic-questions-on-uci-engine-ucinewgame-and-multiple-clients From 66b618b1c9eecb4dc1dbb8c603772b312b3de23e Mon Sep 17 00:00:00 2001 From: DoormatIka Date: Mon, 26 Feb 2024 19:20:33 +0800 Subject: [PATCH 2/2] readme update --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7eb28c9..8ade56b 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,10 @@ Two programmers' second attempt at writing a chess engine. - BasicBot (Cirno) - Alpha-beta Pruning - Material Counting - - Piece-square tables - - History Heuristic + - Piece-square tables (from PeSTO's Evaluation Function) - MVV-LVA - Killer Heuristic + - TT-tables - UCI (`go depth x` only) ### Todo