src/main.rs aktualisiert
fix score dosen´t go up
This commit is contained in:
parent
9f88984be2
commit
20fe6e309d
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue