Idiom
pit your wits againstpit (your) wits against (someone/something)
to compete against someone or something using your intelligence.That's the pleasure of fishing - pitting your wits against these clever little fish that are trying desperately not to get caught.