The gambling mindset is still there he still can remember his sessions his wins the excitement gambling generates and he will try to replicate that feeling by playing cards with people, if you are an addict you will use your imagination to replicate the feelings, if there is a will there is a way for gambling addict, the absence will just make him misses the dopamine.
It might happen for the early days that you have been away to the place where you used to gamble.
But I think eventually you'll get over it especially if you really want to stop your gambling addiction. The change of environment is good to start anew, different from what you used to, and much better if there's no way you can access an internet so you can move on. Anyway, it depends on the gambler if he's determine to stop and the level of his addiction.
Environmental changes allow us to change for the better and leave the old habits we have been doing.
But it takes effort to start a new habit completely different from what we do; not many people can do it.
Even in a new place of residence, we can access the internet more easily, if our desire to change is very strong, it will not make us try to keep gambling online because we already have the determination to change it.
With determination, effort and support from the people around us, everything will be easier and we can leave gambling as we want.