Discrete Colonel Blotto and General Lotto Games