From e62131ba1f1e816521397b72bfc3333ba2d3349a Mon Sep 17 00:00:00 2001 From: Maddox Werts Date: Mon, 17 Mar 2025 10:15:02 -0400 Subject: [PATCH] Updated Main code --- project/src/main.rs | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) 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(); }