diff options
author | curly <curlybryce@protonmail.com> | 2022-08-13 17:55:31 -0600 |
---|---|---|
committer | curly <curlybryce@protonmail.com> | 2022-08-13 17:55:31 -0600 |
commit | 008c2b23c78f8969c9741e537326c13b98c27b58 (patch) | |
tree | bfe5f362d3a45f57e5b234c00389962074856b0a /src/main.rs | |
parent | 1d1ca2fdae780efdb9d27394f5d3720fe9282c91 (diff) | |
download | tetris-008c2b23c78f8969c9741e537326c13b98c27b58.tar.gz tetris-008c2b23c78f8969c9741e537326c13b98c27b58.tar.bz2 tetris-008c2b23c78f8969c9741e537326c13b98c27b58.zip |
fixed my module mistakes
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/main.rs b/src/main.rs index 1abfbd9..aba1e8f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,10 +1,8 @@ -mod lib; -mod display; -mod input; +use tetris::Game; +use tetris::input::Input; fn main() { - println!("Hello World!"); - let tetris = lib::Tetris::new(); - - display::display(tetris.return_grid()); + let input = Input::new(); + let game = Game::new(); + game.game_loop(&input) }
\ No newline at end of file |