diff --git a/src/main.rs b/src/main.rs index 7b1ad78..2c85e52 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,5 +21,13 @@ fn main(){ println!("Du hast überlebt"); } let _score = score += 1; + if score== 32{ + win(32) + } } + } +fn win(w:i32) { + println!("Du hast mit {w} gewonnen"); + panic!() +} \ No newline at end of file