Earning money is real hard and it's a no-brainer. So basically what I do is I write down in a diary of my daily income along side with what I have sacrificed for earning that amount.
It is really hard to earn money by this time so seeing your money being lose in a gambling will definitely hurt you a lot. You know what, it is not really a bad thing to gamble but just do limit the time of gambling. Dedicate a little amount of money that you are afford of losing and ofcourse a discipline in yourself so that you will not be so addicted to it.
Disciplining yourself especially in a game such as gambling where there are maximum chances of getting addicted is a must to do a thing. You can discipline yourself in two simple steps i.e. limit your time for gambling followed by limiting your money. This is the only effective way of avoiding gambling addiction.