switched to crate lib
This commit is contained in:
parent
316d760b58
commit
5c5e6357ad
16 changed files with 15 additions and 869 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use rand::random;
|
||||
|
||||
use super::{Controller, ControllerError, Move};
|
||||
use crate::lib::grid::Grid;
|
||||
use crate::grid::Grid;
|
||||
|
||||
pub struct RandomController;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use crate::lib::grid::Grid;
|
||||
use crate::grid::Grid;
|
||||
|
||||
use super::{Controller, ControllerError, Move};
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use std::{thread, time::Duration};
|
||||
|
||||
use crate::lib::{
|
||||
use crate::{
|
||||
controller::Controller,
|
||||
game::{self, Game, GameError},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue