Last active
January 30, 2025 13:55
-
-
Save mattantonelli/423a2404a00e74fd55e43ce60496ce78 to your computer and use it in GitHub Desktop.
Round robin task assignment. Files are simply line delimited tasks/developers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tasks = File.readlines('./tasks.txt', chomp: true).sort.freeze | |
developers = File.readlines('./developers.txt', chomp: true).shuffle.freeze | |
tasks.each_with_index do |task, i| | |
puts "#{task} - @#{developers[i % developers.size]}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment