Code size challenges - enforce a generalized solution, not hard-coded answers to tests

Code size optimization challenges on this site has always been frustrating and lackluster to me because in order to be competitive you have to hard code responses to each test.

I feel like upon submission the player’s code should be tested against a different suite of tests that the user cannot see, or tests that have randomized values with each submission, to prevent player’s from hard coding their solutions.

Actually having to find a concise way to solve a problem is a lot more interesting to me than finding a concise way of writing:

if(testA) {print testAResult}
else if (testB) {print testBResult}

I agree.

Here is an answer I got from @yohannjardin when I asked about the validator for the optimization games.