We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f0ad3c commit cef6574Copy full SHA for cef6574
31_Depth_Charge/rust/src/main.rs
@@ -1,7 +1,3 @@
1
-use std::io::Write;
2
-
3
-use rand::Rng;
4
5
/** DEPTH CHARGE GAME
6
* https://github.com/marquesrs/basic-computer-games/blob/main/31_Depth_Charge/depthcharge.bas
7
* Direct conversion from BASIC to Rust by Pablo Marques (marquesrs).
@@ -10,6 +6,9 @@ use rand::Rng;
10
* 03/03/25
11
*/
12
8
9
+use std::io::Write;
+use rand::Rng;
+
13
fn input(msg: &str) -> String {
14
print!("{}", msg);
15
let _ =std::io::stdout().flush().unwrap();
0 commit comments