123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- pub mod interface;
- pub mod bitboard;
- pub mod movegen;
- pub mod engine;
- pub mod game;
- pub mod evaluate;
- pub mod search;
- pub mod zobrist;
- pub mod hash;
- extern crate log;
- extern crate simplelog;
- extern crate rand;
- use std::sync::mpsc;
- use std::{thread, fs::File};
- use log::*;
- use simplelog::*;
- use engine::Engine;
- fn main() {
-
-
-
-
- let logfile = File::create("/home/nicolas/debug.log").unwrap();
- simplelog::WriteLogger::init(LevelFilter::Info, Config::default(), logfile).unwrap();
- let (esend, erecv) = mpsc::channel();
- let (isend, irecv) = mpsc::channel();
-
- thread::spawn(move || {
- let mut engine = Engine::new(erecv, isend);
- engine.run();
- });
- interface::run(irecv, esend);
- }
|