end game when out of money

This commit is contained in:
Nick Pegg 2025-07-04 14:39:15 -07:00
parent 10d00c8ef5
commit a2d1695203

View file

@ -71,6 +71,11 @@ fn interactive_play() {
}
bank += result.player_winnings;
if bank == 0 {
println!("You're out of money.");
return;
}
}
}