Skeleton to develop your own Condorcet module.
- Method module: Your own methods for resolving election results using Condorcet as an election framework of preferential voting.
- Constraint module: A very short example of constraint vote evaluation.
- Does not contain a driver example for external storage, please refer to the official documentation (advice also valid for other types of modules).
The aim of these skeletons is to provide an example of implementation and execution without having to fork Condorcet. Modules living in their own namespace. Not to produce documentation of what can be done in the code. To do this, refer to the official documentation and to the methods that exist natively in the Condorcet project, which use exactly the same internal API.
composer update
composer test
Or:
vendor/bin/phpunit
php src/main.php
php bin/CondorcetCommandLine.php
- All Natively implemented methods / https://github.com/julien-boudry/Condorcet/tree/master/src/Algo/Methods
- Dogson Quick, a simple pairwise-based method / https://github.com/julien-boudry/Condorcet/blob/master/src/Algo/Methods/Dodgson/DodgsonQuick.php
- Borda Count is a vote-oriented method / https://github.com/julien-boudry/Condorcet/blob/master/src/Algo/Methods/Borda/BordaCount.php
- Single Transferable Vote, a proportional method / https://github.com/julien-boudry/Condorcet/blob/master/src/Algo/Methods/STV/SingleTransferableVote.php