Skip to content

Commit

Permalink
Merge pull request #11 from Romira915/fix/hit-probability
Browse files Browse the repository at this point in the history
fix: AI hit prob
  • Loading branch information
Romira915 authored Oct 3, 2022
2 parents 6eec143 + ba12d0e commit cd5c98b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord_bot_client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ impl EventHandler for Handler {
// 会話AI
{
let choices = [true, false];
let weights = [0.40, 0.60];
let weights = [0.20, 0.80];
let dist = WeightedIndex::new(&weights).unwrap();
let mut rng = StdRng::from_rng(thread_rng()).unwrap();

Expand Down

0 comments on commit cd5c98b

Please sign in to comment.