Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kanin-kearpimy committed Mar 12, 2024
1 parent 904a3df commit 144c9af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/model/model.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,9 @@ export class Model {

let partner = min + 1 == max ? min : Paul.chooseBetween(max, min, BIAS.REVERSE_BELL);
while (chosen == partner) {
// if chosen is same as partner
// randomize until it isn't
// this will work on condition: there are more than two choices in range.
partner = Paul.chooseBetween(max, min, BIAS.REVERSE_BELL);
}

Expand Down

0 comments on commit 144c9af

Please sign in to comment.