Basically, never gamble at home, as much as possible choose another place to do it even though it is based on online gambling. Delete your browsing history when you visit any website related to gambling, because it could be that without our knowledge, children like to explore our cellphones. The impact of gambling in front of children is quite large, they will tend to no longer respect you if they understand that gambling is a bad thing, and will also follow in your footsteps if they are curious about the games you play.
Even if you delete your online traces for gambling, the kids and children are clever enough to know what their parents are doing. The children knows what you are doing and they observe things very keenly and also try to follow their elders. If parents want their children do not gamble, they need to get rid of gambling themselves. There is no way that the parents gamble (openly or hiddenly) and the children do now know and follow them.
In my opinion, these two things include other impacts, in the long term, gambling in front of children makes them trapped in a period of Inferiority Complex (feeling inferior), because they have parents who behave badly. Therefore, as much as possible, do not gamble in front of children, because we will never be able to control other impacts that may result from our own actions. Even if children already know about our gambling activities, then giving them an understanding is a wise solution.
If parents lose in gambling, they will become frustrated and in this situation, they can behave badly with their children and abuse or punish their children too even though they have nothing wrong done by those children. I do not understand how to cope with such a situation but if the person is doing a responsible gamble he will be able to control his emotions and therefore he will behave normally with his kids, wife and all those near to him.