Skip to content

CondorcetVote/Condorcet_Modules_Skeletons

Repository files navigation

Condorcet Logo

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.

Installation

composer update

Execute all tests

composer test 

Or:

vendor/bin/phpunit

Execute a script example based on your method

php src/main.php

Execute as the command line version

php bin/CondorcetCommandLine.php

Examples of real implementations

Methods (selection)

Constraints