Round robin algorithm behaving strangely in Javascript
I'm making a program with the goal of generating a schedule for a tournament (tennis doubles). Here is how it's supposed to work: I provide the function roundData(see below) that contains the players and when matches are supposed to play…