Skip to content

Commit

Permalink
Merge pull request #11 from DoormatIka/misc
Browse files Browse the repository at this point in the history
Misc additions
  • Loading branch information
DoormatIka authored Feb 26, 2024
2 parents c4c693f + 66b618b commit 3cf6ac3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ This is to be used for an upcoming game made by our group "twoleaflotus".
- 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
Expand Down
8 changes: 7 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ fn output_thread(out: UciMessage, bot: &mut BasicBot, toggle_ready_ok: &Arc<RwLo
*toggle_ready_ok.write().unwrap() = true;
}

UciMessage::Quit => {
std::process::exit(0);
}

UciMessage::Position {
startpos,
fen,
Expand Down Expand Up @@ -115,6 +119,7 @@ fn output_thread(out: UciMessage, bot: &mut BasicBot, toggle_ready_ok: &Arc<RwLo

bot.reset();
}

};
}
_ => {}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3cf6ac3

Please sign in to comment.