I wanted to convey my message here that gambling in front of our kids may put adverse effects on their growing minds and they may also take the wrong path and start gambling (either by asking you personally for funds or by stealing it in order to fulfill their gambling cravings).
Everytime i'm playing at home, I prefer to do it inside my room (alone or sometimes with my partner). If your kids by chance saw you playing, just to talk to them that it's not appropriate for kids and let them understand. Next time, make sure they can't see you, at their young age it's a bit hard for them to comprehend everything especially kids tend to ask a lot of questions.
I think it's much better than you saying it's not good for children because you yourself said that children always imitate adults whether it's good or bad so as much as possible don't show your gambling games or gamble in the room after the child is sleeping or waiting for the child. we are outside the house.