mirror of
https://github.com/sortedcord/rust-poker.git
synced 2026-03-07 15:34:08 +05:30
fix: Prevent CPU from using all chips for bigblind
This commit is contained in:
@@ -195,7 +195,7 @@ fn main() {
|
||||
let bet: i32 = read_int();
|
||||
user.chips -= bet;
|
||||
pot += bet;
|
||||
let bet = rng.random_range(pot..=50);
|
||||
let bet = rng.random_range(pot..=49);
|
||||
println!("CPU sets big blind as: {bet}");
|
||||
cpu.chips -= bet;
|
||||
pot += bet;
|
||||
|
||||
Reference in New Issue
Block a user