From a technical aspect, I've analyzed the JavaScript of both Bit Potato and Coinbomb. It's always interesting to see different ways to approach the same problem. I will have to say that BitPotato's code is better at ensuring you always have updated data, but at the cost of being more heavily dependent upon the server. There are definitely ways I can see to avoid the "Duplicate winner" problems mentioned with the existing data.
I can also easily see ways to minimize the message sizes sent by both /potats and /grabit. Especially with /potats; there seems to be a lot of unnecessary data being transmitted with every query. If a lot of this data were served up by a different script (maybe query it every 5 minutes or so) and only the time critical data were served by /potats, you could see the message size decrease significantly, meaning less load on your server and much quicker responses. Message size is everything when dealing with AJAX since these messages will be transmitted thousands and thousands of times.
One small change which I would suggest: consolation prize amounts is still really unclear. I would say instead of showing a percentage, show the current consolation prize for the potato. So, instead of a potato saying "40% consolation" it would display" Current Consolation: 3.1 LTC" or whatever. This would clear up a LOT of confusion.
Thank you for your input, the consolation amount is a good idea. It is unclear, as it is a percentage of our profits, not the profits the players make. This is the only value we can guarantee on potatoes with larger returns. CoinBomb copied our initial model, where the consolation prize was a percentage of player's profits. This held up in terms of the commission we took, cutting into our profits but not putting us in the red. Since CoinBomb went with our initial setup of four potatoes (bombs) for the same values/gains that model held up for them. When we introduced the higher yield potatoes, our profits were no longer enough to pay the consolation prizes, so we had to change the model to something more consistent, i.e. a percentage of the profits we take off every transaction. Do you think you could send an email to [email protected] about your suggestions for the javascript? It would be much appreciated!
Best Regards,
Bit Potato