Skip to content

Commit

Permalink
experiment with names for rating delimiters
Browse files Browse the repository at this point in the history
  • Loading branch information
ikluft committed Nov 27, 2023
1 parent 6dfa60b commit 20b5d09
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/perl/kr2/lib/PrefVote/KR2.pm
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ PrefVote::Core::TestSpec->register_blackbox_spec(
);
__PACKAGE__->ballot_input_ties_policy(1); # set flag for Core: this class allows input ballots to set A/B ties

# rating levels
Readonly::Hash my %rating_levels =>
{
1 => [],
3 => [ qr( favor oppose ) ],
5 => [ qr( favor2 favor1 oppose1 oppose2 ) ],
}

# list of names of winners in order by place, ties shown by a set of the tied candidates
has winners => (
is => 'rw',
Expand Down

0 comments on commit 20b5d09

Please sign in to comment.