We provide an optimal probabilistic strategy for the plurality problem and optimal deterministic and probabilistic strategies for the partition problem of balls with three colors.