src/main.rs aktualisiert

fix score dosen´t go up
This commit is contained in:
robin 2024-04-04 21:23:20 +02:00
parent 9f88984be2
commit 20fe6e309d

View file

@ -1,7 +1,7 @@
use std::io;
use rand::Rng;
fn main(){
let score:u32 = 0;
let mut score:u32 = 0;
loop {
println!("Vor dir sind drei Türen");
println!("Eine von ihnen tötet dich ");
@ -20,6 +20,6 @@ fn main(){
else {
println!("Du hast überlebt");
}
let _score = score+1;
let _score = score += 1;
}
}