From Longman Dictionary of Contemporary Englishpit your wits against somebodypit your wits against somebodyto compete against someone in a test of knowledge or intelligence → wit
Examples from the Corpus
pit your wits against somebody• Jill and Oz will pit their wits against each other, as they try to identify mystery wines.