Euchre Tourney Results
The weekend was great! We couldn’t have asked for better weather, but I could have asked for more sunscreen. We ended up having 5 teams for the annual tournament. Ironically, the random pairings by my program produced three repeat pairings from last year, but that’s life. My littlest sister wasn’t partaking but wanted to enter in the scores. She jumped the gun in the first round and updated the scores before all the games had been completed in the round so only one team got a win while everyone else received a loss and the two teams that weren’t finish received zero points. Since the teams were randomly paired, I paniced for a minute thinking we might have to back to keeping score by hand because I had no idea how to reproduce the teams if we restarted. After a deep breath, it was really just a 30 second fix:
The teams are formed by “popping” the last element of the players array into the team array.
teams[i][1] = players.pop(); // teammate 1
teams[i][2] = players.pop(); // teammate 2
Obviously the players array is randomized by this line:
players.sort( randOrd ); // randomize players
So to restart the script and make sure the teams stayed the same, I first wrote down the players names in a reverse list on a piece of paper (players from Team 1 were on the bottom of the list … players from Team 5 were on the top of the list). Then, I commented out the line that randomized the players and entered the player names in the order I had my list (players for Team 5 were entered first … players for Team 1 were entered last).
This recreated the teams we had originally and we were able to continue the tournament without any other interuptions. The tourney did end with two teams tied with the same record and same number of points so we had to go to the sudden death playoff but instead of one hand they wanted to play an entire game. My brother and aunt won it all while my grandmother and I came in last place (but we had the most fun).