How do I set a tactical trap without tipping my opponent off?
These answers restate the rules implemented by our open-source engine, which follows the WXF laws for movement, checkmate and both repetition rulings: a side that forces a repetition by perpetual check or perpetual chase loses rather than drawing. The chase half has not been validated against the official casebook. Where an answer refers to a specific position, that position lives on the linked reference page, where the build verifies it before publishing.
Direct answer
The best traps are moves that look completely ordinary, a normal developing move, a routine defensive adjustment, or a natural-looking piece trade, so that nothing about the move itself signals a threat. If a move looks like a trap, most opponents past the earliest stages will simply avoid whatever it is aiming at.
What makes a trap-setting move convincing
It should be a move you would plausibly play anyway, even if the trap did not exist, so your opponent has no reason to scrutinise it more closely than any other move. A move that only makes sense as a setup is far more likely to be noticed and sidestepped than one that serves a normal purpose on its own.
Why over-relying on traps is still a weak strategy
A trap only pays off if your opponent falls for it, and a reasonably careful player checking captures and threats before every move will often see through it regardless of how well it was disguised. Traps are a nice bonus on top of otherwise sound play, not a substitute for playing objectively good moves.
Related questions
Is it unsporting to set traps?
No, it is a completely normal part of competitive play, provided the moves themselves are legal and honest.
What should I do if I suspect I've walked into a trap?
Stop and recalculate the position from scratch rather than continuing with your original plan on autopilot.