Describe an algorithm for painting cards in the following game
The Ray-Chaudhuri&ndash;Wilson theorem states that the number of cards is at most the number of objects. See for example a paper of Noga Alon (in your case, $L = \{1\}$).