diff --git a/project/src/main.rs b/project/src/main.rs index d77a9a0..3147072 100644 --- a/project/src/main.rs +++ b/project/src/main.rs @@ -1,6 +1,26 @@ // Libraries +mod config; +mod neural; +use neural::NeuralNetwork; + +use std::error::Error; // Entry-Point fn main() { - println!("Hello, world!"); + // Getting Running Mode First + let operation_mode = config::get_operation_mode(); + + // Creating a Neural Network + let neural: NeuralNetwork; + + // Creating a Neural Network with the Operation Mode + match operation_mode { + None => panic!("Main: `OperationMode` not defined!"), + Some(mode) => { + neural = NeuralNetwork::new(mode); + } + } + + // Starting the network + neural.start(); }