Skip to content

Commit

Permalink
removed unused hashes and fixed vector to array
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienPensart committed Sep 4, 2023
1 parent 99f0cb8 commit 7b65949
Show file tree
Hide file tree
Showing 4 changed files with 143 additions and 148 deletions.
145 changes: 70 additions & 75 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/player_in_game.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ impl PlayerInGame {
if self.options.no_slam {
return Ok(false);
}
let slams = vec![false, true];
let slams = [false, true];
self.slam = if self.options.random {
let weights = vec![99, 1];
let dist = WeightedAliasIndex::new(weights)?;
Expand Down
Loading

0 comments on commit 7b65949

Please sign in to comment.