From 1ce581a931352192c1360e1496d7a1ae56380e9d Mon Sep 17 00:00:00 2001 From: omagdy7 Date: Tue, 13 Sep 2022 16:32:43 +0200 Subject: Added ui.rs which is responsible for the tui and changed the code to run the game of life in a block of the tui --- src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 056d16a..7b4544b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,9 +1,11 @@ #![allow(unused_imports, unused_variables, unused_mut)] +use std::error::Error; mod generation; use generation::*; +mod ui; +use ui::*; - -fn main() { +fn main() -> Result<(), Box> { generation::init() } -- cgit v1.2.3