Jackmin801 / Git-Voting-Tests

Repository to test the feasibility of using GitHub as a neutral voting platform.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Git-Voting-Tests

Repository to test the feasibility of using GitHub as a neutral voting platform.

Game Rules

  • Everyone gets 10 votes.

  • All players get to allocate their votes to the contended projects.

  • The projects will be resolved in descending order of total votes. (Ties are broken by descending order of project name)

  • The resolve is as follows:

    1. Allocate integer ranges based on how many votes each player put into the project
    2. A random integer is chosen in the range
    3. The player who owns the range wins the project. Their votes in other projects are voided.
  • If after the game is played, there are still leftover players and projects, the game is played again with the remaining players and projects.

Step 1 of the resolve will allocate integer ranges in descending order of votes. (Ties broken in descending order of player name)

The random is seeded using the hash of the configs and everyones votes so the game is reproduceable on everyones machine and hard to cheat

Command documentation

Install Requirements

pip install -r requirements.txt

Run game

You can run the game with the default yaml at votes.yaml

python game.py

or specify a yaml file to run against:

python game.py <YAML FILE>

You may wish to save the outputs to a file which you can do so with carrot:

python game.py <YAML FILE> > <OUTPUT FILE>

About

Repository to test the feasibility of using GitHub as a neutral voting platform.

License:MIT License


Languages

Language:Python 100.0%