diff --git a/src/main.rs b/src/main.rs index 31e6b9d..41da7ea 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,8 +1,5 @@ -mod models { - pub mod board; - pub mod piece; - pub mod networking; -} +mod models; +use models::{player, board, piece, networking}; use clap::{Arg, App, SubCommand}; fn main() { diff --git a/src/models/mod.rs b/src/models/mod.rs index df2f8b7..1627db4 100644 --- a/src/models/mod.rs +++ b/src/models/mod.rs @@ -1,5 +1,5 @@ pub mod board; -// pub mod networking; +pub mod networking; pub mod piece; pub mod player; diff --git a/src/models/piece.rs b/src/models/piece.rs index 9a76fd1..82b0ae2 100644 --- a/src/models/piece.rs +++ b/src/models/piece.rs @@ -2,6 +2,7 @@ use std::fmt; use super::player::Player; + #[derive(Clone)] pub enum DjedDirection { NorthWest,