# make b lose another round PLB.record_match(PLA, 0, 2) PLA.record_match(PLB, 2, 0) print 'PLB.game_win_percent() : ', PLB.game_win_percent() # Table tests PLA = Player('John', 'Sheridan') PLB = Player('Jeffrey', 'Sinclair') PLC = Player('BYE', 'BYE') TA0 = Table(PLA, PLB) TA1 = Table(PLC, PLA) TA2 = Table(PLB, PLC) print TA0 TA0.report_match(2, 1) TA0.lock_table() print TA0.report_match(1, 2) print TA0.inverse_copy() print TA1 print TA2 # Tournament module tests # Tournament.number_rounds() tests print 'Tournament.number_rounds(192, True, 4):', \ Tournament.number_rounds(192, True, 4) print 'Tournament.number_rounds(384, True, 2):', \ Tournament.number_rounds(384, True, 2) print 'Tournament.number_rounds(512, True):', \ Tournament.number_rounds(512, True)