switched to crate lib

This commit is contained in:
JOLIMAITRE Matthieu 2022-09-03 02:37:33 +02:00
parent 316d760b58
commit 5c5e6357ad
16 changed files with 15 additions and 869 deletions

View file

@ -2,7 +2,7 @@ use std::io::{stdin, stdout};
use termion::{event::Key, input::TermRead, raw::IntoRawMode};
use super::{Controller, ControllerError, Move};
use crate::lib::grid::Grid;
use crate::grid::Grid;
pub struct PlayerController;

View file

@ -1,7 +1,7 @@
use rand::random;
use super::{Controller, ControllerError, Move};
use crate::lib::grid::Grid;
use crate::grid::Grid;
pub struct RandomController;

View file

@ -1,4 +1,4 @@
use crate::lib::grid::Grid;
use crate::grid::Grid;
use super::{Controller, ControllerError, Move};

View file

@ -1,6 +1,6 @@
use std::{thread, time::Duration};
use crate::lib::{
use crate::{
controller::Controller,
game::{self, Game, GameError},
};