BaseLadder match_players now raises RuntimeError when either
No players are in the pool to match
Only one player in the pool is available (no match can be found)
Test Cases
tests/ladder_tests/weighted_ladder_test.py
When 0 players are available in the player_pool, throw a RuntimeError
When 1 player is available in the player_pool, throw a RuntimeError
In cases when there are originally more than 3 players, running match_players() after the first set of players are matched (ie: only one player remains in the pool) throws a RuntimeError
Addresses Issue #150
Updates
BaseLadder
match_players now raisesRuntimeError
when eitherTest Cases
tests/ladder_tests/weighted_ladder_test.py
player_pool
, throw a RuntimeErrorplayer_pool
, throw a RuntimeErrormatch_players()
after the first set of players are matched (ie: only one player remains in the pool) throws a RuntimeError