Actually it is exactly like that.
If you play tournament chess, like USCF tournaments, then there's no doubt what the rules are. However if you play casual chess, like with some random guy in the park, then be prepared for some misunderstandings.
Some things casual players think are rules:
Pawns move two squares only on the first move of the *game* not the first move of the pawn
You can't promote a pawn the move after it arrives on the 7th rank, you have to wait a move
Perpetual check is illegal (somewhat like the Ko rule in go)
Capturing En Passant is generally not known
So when I'm playing a stranger I always ask if they've played any tournaments, not to gauge how strong they are, but to see if they'll know the rules of chess.