- Keeping myself busy and focusing on work.
Keeping yourself busy is one of the best ways for an addict to distract themselves from gambling. They can find a hobby that they enjoy, or do work, or do other activities that keep their attention away from gambling. Because the problem that gamblers often face is that the urge to gamble arises when they are not doing anything - although this is quite difficult to do because not everyone has the same ability to restrain themselves, but if this is practiced continuously then over time an addict will be able to control their addiction to gambling.
You're right that the temptation to gamble often arises periods of idleness or boredom. By filling this void with constructive and engaging activities, individuals can reduce their reliance on gambling.
As you noted, self restraint can be challenging, and not everyone possesses the same level willpower. However, with consistent practice and effort, individuals can develop greater control over their addiction.