Pit (one's) wits against (someone or something) phrase
If someone "pits his/her wits against someone/something", he/she competes intellectually with someone/something in a test of knowledge or intelligence.
It is quite nerve-racking for him to pit his wits against an excellent representative from the USA in the World Chess Championship
In this gameshow, two teams will pit their wits against one another to find the one with more correct answers in a limited time.
He is pitting his wits against a 7-year genius in "The Brain Vietnam" show.
The verb "pit" should be conjugated according to its tense.
Be embarrassed and ashamed when one has been defeated or failed
After losing that game, she had her tail between her legs.