1 个不稳定版本
0.1.0 | 2023年10月30日 |
---|
7KB
154 行
piKFish 代理
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();
}