Quoted for truth.
You have to realize that brain is like chemical machine, and alike to some kind of animal with primary instincts, and thus it can be modified or trained.
The thing is that the willpower is useless here, unless you some kind of iron man. (Most of us are not)
You can avoid playing 1 day, 5 days, but then all you need is just one relapse and you are back in the game.
The trick is to train your brain out of this dependence. Think of the brain as some kind of not so smart animal that you have to train the right behavior. You have to provide incentives and substitution to quit the game, to release endorphin triggered by something else.
The actual technique of quitting this particular addiction is not much different from quitting any other addiction. It is already good that you have realized that it is a problem for you. It is a first step. Now you have to go through internet, read some books about addiction and learn about techniques of quitting. Unfortunately there is no easy way out. But it is doable.
You may also want to seek some help from professional psychologists. It may make it easier, but more expensive, of cause.