Skip to content

Commit cef6574

Browse files
committed
depth charge game initial rust implementation
1 parent 2f0ad3c commit cef6574

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

31_Depth_Charge/rust/src/main.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
use std::io::Write;
2-
3-
use rand::Rng;
4-
51
/** DEPTH CHARGE GAME
62
* https://github.com/marquesrs/basic-computer-games/blob/main/31_Depth_Charge/depthcharge.bas
73
* Direct conversion from BASIC to Rust by Pablo Marques (marquesrs).
@@ -10,6 +6,9 @@ use rand::Rng;
106
* 03/03/25
117
*/
128

9+
use std::io::Write;
10+
use rand::Rng;
11+
1312
fn input(msg: &str) -> String {
1413
print!("{}", msg);
1514
let _ =std::io::stdout().flush().unwrap();

0 commit comments

Comments
 (0)