pikagent

Crates.iopikagent
lib.rspikagent
version0.1.0
sourcesrc
created_at2023-10-30 11:24:23.719607
updated_at2023-10-30 11:24:23.719607
descriptionagent pikafish
homepage
repositoryhttps://github.com/atopx/pikagent.git
max_upload_size
id1018383
size7,974
atopx (atopx)

documentation

README

agent pikafish

use pikagent;

fn main() {
    let bin = "/Users/atopx/opensource/chesscc/Pikafish/src/pikafish";
    let mut engine = pikagent::Engine::new(bin).unwrap();
    println!("{}", engine.uci());
    engine.new_game(6, 32).unwrap();
    let (best, ponter) = engine.search(None, Some(10), None);
    println!("best {:?}", best);
    println!("ponter {:?}", ponter);
    println!("fen {}", engine.to_fen());

    let (best, ponter) = engine.move_search(&best.unwrap(), 20, 2000);
    println!("best {:?}", best);
    println!("ponter {:?}", ponter);
    println!("fen {}", engine.to_fen());
    engine.close().unwrap();
}
Commit count: 3

cargo fmt