Skip to content

Instantly share code, notes, and snippets.

View wachunei's full-sized avatar
🧔
being

Pedro Pablo Aste Kompen wachunei

🧔
being
View GitHub Profile
@wachunei
wachunei / main.js
Last active September 4, 2015 14:05 — forked from lopezjurip/main.js
Repartidor web js
var turn = 0;
var teams = ['Rupie', 'TheTeam', 'Veritas', 'ImaginApp', 'Nebuchadnezzar', 'InternalServerError'];
var patoTeams = ['YisusPlusOne', 'ZipCity2000', 'tqzptscsaj'];
var pedroTeams = ['String.random','ToPa'];
var thomasTeams = ['LosExtraterrestresMusicales', 'Rock and Prog', 'PW:Software'];
var result = teams.sort(function(){return 0.5 - Math.random();})
.reduce(function(previous, current) {
previous[['pato', 'thomas', 'pedro'][turn++ % 3]].push(current);
return previous;