MatchMaker(): Constructing a match maker ...
addPerson(): Adding some people ...
- Alvin (M)
- Bobby (M)
- Caleb (M)
- Diane (F)
- Emily (F)
- Fiona (F)
getRank():
- getRank("Alvin", "Diane") - should be 1? 1
- getRank("Alvin", "Emily") - should be 2? 2
- getRank("Alvin", "Fiona") - should be 3? 3
- getRank("Bobby", "Diane") - should be 2? 2
- getRank("Bobby", "Emily") - should be 1? 1
- getRank("Bobby", "Fiona") - should be 3? 3
- getRank("Caleb", "Diane") - should be 1? 1
- getRank("Caleb", "Emily") - should be 3? 3
- getRank("Caleb", "Fiona") - should be 2? 2
- getRank("Diane", "Alvin") - should be 3? 3
- getRank("Diane", "Bobby") - should be 2? 2
- getRank("Diane", "Caleb") - should be 1? 1
- getRank("Emily", "Alvin") - should be 1? 1
- getRank("Emily", "Bobby") - should be 2? 2
- getRank("Emily", "Caleb") - should be 3? 3
- getRank("Fiona", "Alvin") - should be 3? 3
- getRank("Fiona", "Bobby") - should be 1? 1
- getRank("Fiona", "Caleb") - should be 2? 2
isStable()? false
printMatches():
Alvin: single
Bobby: single
Caleb: single
Diane: single
Emily: single
Fiona: single
nextRound() - round 1
Alvin proposes to Diane
Bobby proposes to Emily
Caleb proposes to Diane
isStable()? false
printMatches():
Alvin: single
Bobby: engaged to Emily (rank 1)
Caleb: engaged to Diane (rank 1)
Diane: engaged to Caleb (rank 1)
Emily: engaged to Bobby (rank 2)
Fiona: single
nextRound() - round 2
Alvin proposes to Emily
isStable()? false
printMatches():
Alvin: engaged to Emily (rank 2)
Bobby: single
Caleb: engaged to Diane (rank 1)
Diane: engaged to Caleb (rank 1)
Emily: engaged to Alvin (rank 1)
Fiona: single
nextRound() - round 3
Bobby proposes to Fiona
isStable()? false
printMatches():
Alvin: engaged to Emily (rank 2)
Bobby: engaged to Fiona (rank 3)
Caleb: engaged to Diane (rank 1)
Diane: engaged to Caleb (rank 1)
Emily: engaged to Alvin (rank 1)
Fiona: engaged to Bobby (rank 1)
nextRound() - round 4
isStable()? true
printMatches():
Alvin: engaged to Emily (rank 2)
Bobby: engaged to Fiona (rank 3)
Caleb: engaged to Diane (rank 1)
Diane: engaged to Caleb (rank 1)
Emily: engaged to Alvin (rank 1)
Fiona: engaged to Bobby (rank 1)
nextRound() - round 5
Complete!