There are two sentences :-
The children play on the playground.
The children play in the playground.
The second looks better and we can say it is correct because they are playing in the enclosed area of playground but the first one can have the argument that they are playing on the surface not below the surface.
Which one should be correct? Please generalise a rule if you can.