first working
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
[package]
|
||||
name = "cli"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
engine = { path = "../engine" }
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
pub mod benchmark;
|
||||
pub mod play;
|
||||
pub mod train;
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
pub fn run() {
|
||||
|
||||
// train(TrainingConfig {}, );
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
mod commands;
|
||||
|
||||
use std::env;
|
||||
|
||||
fn main() {
|
||||
let args: Vec<String> = env::args().collect();
|
||||
|
||||
match args.get(1).map(|s| s.as_str()) {
|
||||
Some("train") => commands::train::run(),
|
||||
Some("selfplay") => commands::selfplay::run(),
|
||||
Some("benchmark") => commands::benchmark::run(),
|
||||
_ => {
|
||||
println!("unknown command");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user