If you win or do well at something, do not brag.
If you lose, do not show anger. Instead, say something like, "I really enjoyed the competition, and I look forward to playing you again" or "Good game," or don't say anything at all. To show anger or sarcasm, such as, "I wasn't playing hard anyway. You really aren't that good," shows weakness.