spjspj - Add Rich Man Cube draft. This is a variation on the Rich Man set draft. It still (like cube) shouldn't let there be more than one copy of a card in the draft but will give each player a new pack from the cards that haven't been picked already each time. Allows 2 player cube drafts to be playable.

This commit is contained in:
spjspj 2016-06-26 12:54:59 +10:00
parent c1c63c7c91
commit 2eb68403cf
4 changed files with 238 additions and 0 deletions

View file

@ -139,4 +139,17 @@ public abstract class DraftCube {
return booster;
}
void removeFromLeftCards(CardIdentity cardId) {
if (cardId == null) {
return;
}
for (int i = leftCubeCards.size() - 1; i >= 0; i--) {
if (leftCubeCards.get(i) == cardId) {
leftCubeCards.remove(i);
return;
}
}
}
}