One of my neighbours, a million years ago, was obviously addict to the slot machines. He would spend hours spinning in a nearby bar (these machines are allowed in bars in my country of origin) and my take is that he would spend a fortune on it. Once, I passed by and I overheard him saying "I am going to teach this machine who is in charge". It sounded like he was attributing some short of conscience and life to the machine and though he could "beat it". I have observed that many people that gamble are into that type of thinking, that is, it is me against this code and this machine and I can actually break the code and win.
I personally do not play slots, but do you think that is why people like slot machines? Short of breaking their code?
Many years ago something like this had also crossed my mind, although I play the slot machines only as a way to de-stress, I do not seek to win in them, I just have fun, for this reason I have very little money to bet there. Based on the knowledge that any programmer can use against these machines, whether they are algorithms to break their code is something that turns out to be too unlikely if not impossible, now with all the development of artificial intelligence I do not know how much it may be possible to do it, although I still doubt it, I think that if artificial intelligence + quantum computing is developed it may be another story.