Installation
Option 1: Build it yourself with composer
(you must have PHP >= 8.1 and composer)
shell
mkdir Condorcet && cd Condorcet
composer require julien-boudry/condorcet
./vendor/bin/condorcet --help
# Execute a command, example:
./vendor/bin/condorcet election -c "A;B;C" -w "A>B;A>C;C>B" -r
Option 2: From Docker Container
You must install Docker first. See installation instructions.
shell
docker pull julienboudry/condorcet:latest
# Interactive mod
docker run -it --rm julienboudry/condorcet election
# With custom parameters :
docker run -it --rm julienboudry/condorcet election -c "A;B;C" -w "A>B;A>C;C>B" -r
shell
git clone https://github.com/julien-boudry/Condorcet.git
cd Condorcet
docker build -t condorcet .
# Interactive mod
docker run --rm -it condorcet election
# Or execute a command, example:
docker run --rm -it condorcet election -c "A;B;C" -w "A>B;A>C;C>B" -r
Option 3: From PHAR file
Download the PHAR file from releases section.
shell
# Interactive mod
php condorcet.phar
# Or execute a command, example:
php condorcet.phar election -c "A;B;C" -w "A>B;A>C;C>B" -r
Option 4: From Github Codespace
You first need a GitHub account. Then click on the button below, and play with Condorcet in the terminal. The command is just condorcet
.
You can type something like this:
shell
condorcet election