how bout trying to do something else?
or maybe you could find another hobby
This is maybe the most suggested on how to stay away. But the problem in this is, It still depends on the person on how motivated he/she is. I'm pretty sure that there are still some time that you'll get alone, bored and has nothing to do. If the gambler can control the urge to play then he will definite can do it.