Skip to content

imsteev/pong

Repository files navigation

pong

Example: even number of players

Stephens-MacBook-Pro:pong stephenchung$ python round_robin.py
ROUND 1
Michael Gary Scott (1) v. Dwight Schrute (6)
Jim Halpert (2) v. Phyllis Vance (5)
Pam Beasley (3) v. Kevin Malone (4)

ROUND 2
Michael Gary Scott (1) v. Phyllis Vance (5)
Kevin Malone (4) v. Dwight Schrute (6)
Jim Halpert (2) v. Pam Beasley (3)

ROUND 3
Michael Gary Scott (1) v. Kevin Malone (4)
Pam Beasley (3) v. Phyllis Vance (5)
Jim Halpert (2) v. Dwight Schrute (6)

ROUND 4
Michael Gary Scott (1) v. Pam Beasley (3)
Jim Halpert (2) v. Kevin Malone (4)
Phyllis Vance (5) v. Dwight Schrute (6)

ROUND 5
Michael Gary Scott (1) v. Jim Halpert (2)
Pam Beasley (3) v. Dwight Schrute (6)
Kevin Malone (4) v. Phyllis Vance (5)

Example: odd number of players

ROUND 1
Michael Gary Scott (1) v. BYE (-)
Jim Halpert (2) v. Phyllis Vance (5)
Pam Beasley (3) v. Kevin Malone (4)

ROUND 2
Michael Gary Scott (1) v. Phyllis Vance (5)
Kevin Malone (4) v. BYE (-)
Jim Halpert (2) v. Pam Beasley (3)

ROUND 3
Michael Gary Scott (1) v. Kevin Malone (4)
Pam Beasley (3) v. Phyllis Vance (5)
Jim Halpert (2) v. BYE (-)

ROUND 4
Michael Gary Scott (1) v. Pam Beasley (3)
Jim Halpert (2) v. Kevin Malone (4)
Phyllis Vance (5) v. BYE (-)

ROUND 5
Michael Gary Scott (1) v. Jim Halpert (2)
Pam Beasley (3) v. BYE (-)
Kevin Malone (4) v. Phyllis Vance (5)

About

round-robin scheduling

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published