public void AddTokens(TokenCollection tokensToAdd) { foreach (TokenColor tokenColor in TokenUtils.AllTokens) { AddTokens(tokenColor, tokensToAdd.GetCount(tokenColor)); } }
public uint TokenCount(TokenColor tokenColor) => _tokensInternal.GetCount(tokenColor);
private bool BoardHasInsufficientTokens(GameBoard board) { var color = TokenUtils.AllTokens.First(t => _tokensInternal.GetCount(t) == _tCount); return(board.BoardTokens.GetCount(color) < _minBoardTokenCount); }
private bool InvalidTokenCombination() => _tokensInternal.TotalTokens > _validTotalCount || TokenUtils.AllTokens.Any(t => _tokensInternal.GetCount(t) > _validSingleCount);