The game (a blackjack game) was written in such a way because that was Mel's style and approach a really smart person, as described in the article.
The idea behind it was to annoy the marketing people, disregard their request, and help the machine win every game, instead of the other way around.