Thanks for the tip op. Majority of these PvP gambling sites are usually poker sites, but most of the players were bots and I was aware of that though I thought that the provably fair mechanism used by the site eased my worries. Looks like I was wrong.
These kinds of posts are very helpful yet most likely go unnoticed by beginners or newbies since they basically don't understand it. They may try to read it, but it is way too difficult to understand without the prior knowledge of some of the technicalities behind the logic.
Agreed. I had to read the solution proposed by op twice to fully understand it and I graduated with a CS degree. These threads definitely deserve more attention.