Mix 'em up!
Clone or download
Pull request Compare This branch is even with dominic-farquharson:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
doc.json
marty.json
package.json
scramble.js

README.md

The Scrambler™ 🍳

Class team mixer-upper! scramble.js reads a JSON file containing an array of student names and scrambles them up into random teams of two. It even makes a team of three in the event of an odd number of students! Wow!

Installation

Clone or download off of github, then cd into the folder and run

$ npm install

Usage

$ node scramble.js CLASSFILE

Examples

The repository includes JSON files with the names of the students in the Doc and Marty classes of the Summer 2017 DeLorean cohort in New York City.

$ node scramble.js marty.json
Jason & Raj
Young T & Alex
Julia & Daniel
Mitchel & Carly
Militsa & Jake
Ryan & Joseph
Tom & Brandon
Oswaldo & Mark
$ node scramble.js doc.json
Bianca & Franklin
Joe & Dennis
Amidou & Dan
Rana & Ivan
Mark & Aury
Hao & Karen
Ash & Seye
Briseida & Philip

License

scrambler is free and unencumbered software released into the public domain. See UNLICENSE for details.