Skip to content

honnigmelone/Fairsharer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

24 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Fair Sharer β˜€οΈπŸ˜½

Overview πŸ„

The Fairsharer repository hosts a Python program designed for the fair distribution of values across a group.

Functionality 🌡

The fair_sharer function operates by redistributing a share of the highest value in a list to its neighboring elements, over a specified number of iterations.

Explanation πŸ‘½

  • values = [10, 20, 30, 40, 50] # Example values
  • num_iterations = 10 # Number of iterations
  • share = 0.1 # Share to be redistributed

fair_sharer(values, num_iterations, share)

Installation πŸ₯

$ pip install -r requirements.txt

About

Program to share values fairly over time :)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages