You might like to explore this problem with a Logo program.
See the article Muggles, Logo and Gradients .

For a similar problem on this topic see Lying and Cheating