The king claimed that he would give his daughter, i.e the princess, to whoever won the contest.