Updated Main code

This commit is contained in:
Maddox Werts 2025-03-17 10:15:02 -04:00
parent d7075bce86
commit e62131ba1f

View file

@ -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();
}