1
0
This repository has been archived on 2023-11-30. You can view files and clone it, but cannot push or open issues or pull requests.
dtux__serveur-vote-lalis/include/Condorcet/Examples/Examples-with-html/vote_data/BasicVoteConf.php

55 lines
999 B
PHP

<?php
declare(strict_types=1);
// Candidates
$election->addCandidate('Memphis');
$election->addCandidate('Nashville');
$election->addCandidate('Chatta');
$election->addCandidate('Knoxville');
// Votes
$vote[] = 'Memphis';
$vote[] = 'Nashville';
$vote[] = 'Chatta';
$vote[] = 'Knoxville';
for ($i = 1; $i <= 42; $i++) {
$election->addVote($vote, 'custom_tag_Two');
}
$vote = [];
$vote[] = 'Nashville';
$vote[] = 'Chatta';
$vote[] = 'Knoxville';
$vote[] = 'Memphis';
for ($i = 1; $i <= 26; $i++) {
$election->addVote($vote, 'custom_tag_Two');
}
$vote = [];
$vote[] = 'Chatta';
$vote[] = 'Knoxville';
$vote[] = 'Nashville';
$vote[] = 'Memphis';
for ($i = 1; $i <= 12; $i++) {
$election->addVote($vote);
}
for ($i = 1; $i <= 3; $i++) {
$election->addVote($vote, 'custom_tag_One');
}
$vote = [];
$vote[] = 'Knoxville';
$vote[] = 'Chatta';
$vote[] = 'Nashville';
$vote[] = 'Memphis';
for ($i = 1; $i <= 17; $i++) {
$election->addVote($vote, 'custom_tag_Two');
}
$vote = [];