Nicolas Winkler %!s(int64=2) %!d(string=hai) anos
pai
achega
c09ce1ee4b
Modificáronse 3 ficheiros con 8 adicións e 2 borrados
  1. 5 1
      Cargo.toml
  2. 2 1
      src/interface.rs
  3. 1 0
      src/main.rs

+ 5 - 1
Cargo.toml

@@ -7,4 +7,8 @@ authors = ["Nicolas Winkler <nicolas.winkler@gmx.ch>"]
 
 log = "*"
 simplelog = "*"
-rand = "*"
+rand = "*"
+
+[profile.release]
+opt-level = 3
+lto = true

+ 2 - 1
src/interface.rs

@@ -9,7 +9,6 @@ use game::{Game};
 
 use log::info;
 
-
 pub fn run(r: Receiver<InterfaceMsg>, s: Sender<EngineMsg>) {
     //unsafe { debug_log = Box::new(File::open("debug.log").unwrap()); }
     //unsafe { debug_log = Arc::new(Some(Mutex::new(File::create("~/debug.log").unwrap()))) };
@@ -24,6 +23,7 @@ pub fn run(r: Receiver<InterfaceMsg>, s: Sender<EngineMsg>) {
     }
 }
 
+
 fn run_command(mut cmd: Vec<&str>, r: &Receiver<InterfaceMsg>, s: &Sender<EngineMsg>) {
     if cmd.len() > 0 {
         let command = cmd[0];
@@ -36,6 +36,7 @@ fn run_command(mut cmd: Vec<&str>, r: &Receiver<InterfaceMsg>, s: &Sender<Engine
             "go" => cmd_go(cmd, r, s),
             "stop" => cmd_stop(cmd, r, s),
             "ucinewgame" => cmd_newgame(cmd, r, s),
+            //"setoption" => cmd_setoption(cmd, r, s),
             "quit" | "exit" => cmd_quit(cmd, r, s),
             cmd => { println!("unknown command: {}", cmd); }
         }

+ 1 - 0
src/main.rs

@@ -7,6 +7,7 @@ pub mod evaluate;
 pub mod search;
 pub mod zobrist;
 pub mod hash;
+pub mod settings;
 
 extern crate log;
 extern crate simplelog;