{"action":"created","issue":{"url":"https://api.github.com/repos/graywolf336/CasinoSlots/issues/30","labels_url":"https://api.github.com/repos/graywolf336/CasinoSlots/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/graywolf336/CasinoSlots/issues/30/comments","events_url":"https://api.github.com/repos/graywolf336/CasinoSlots/issues/30/events","html_url":"https://github.com/graywolf336/CasinoSlots/issues/30","id":6719677,"number":30,"title":"Rewards chance -really low, really hard to calculate.","user":{"login":"stgram","id":2301128,"avatar_url":"https://avatars.githubusercontent.com/u/2301128?v=3","gravatar_id":"","url":"https://api.github.com/users/stgram","html_url":"https://github.com/stgram","followers_url":"https://api.github.com/users/stgram/followers","following_url":"https://api.github.com/users/stgram/following{/other_user}","gists_url":"https://api.github.com/users/stgram/gists{/gist_id}","starred_url":"https://api.github.com/users/stgram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stgram/subscriptions","organizations_url":"https://api.github.com/users/stgram/orgs","repos_url":"https://api.github.com/users/stgram/repos","events_url":"https://api.github.com/users/stgram/events{/privacy}","received_events_url":"https://api.github.com/users/stgram/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/graywolf336/CasinoSlots/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2012-09-07T17:29:57Z","updated_at":"2015-11-04T12:05:53Z","closed_at":"2015-11-04T00:25:26Z","body":"Hi, you got a really awesome plugin there!\nBut, I like math. And this causes me some trouble... :/\nWhen I create slots, I want to know exactly how often is the player going to win 300$ for example, or the grand prize, or just a stack of melons.\nYour plugin relies on getting 3 in a row/diagonal.\nIf we focus on the middle row for a sec:\nLets say in the config we have 20 blocks obsidian, 30 sand and 50 stone.\nWhen you roll, you pick a random number from 0 to 99, picking the block. So the chance for an obsidian in the first column is 20/100 = 20%. But, to score a  double obsidian, we need to square that. For a winning row, the chance is (20/100)^3=0.8%\nOk, this could be the jackpot, but what about the others? The stone gets to 12.5%, and the sand is in the middle.\nAll we are left with is somewhere about 8/10 attempts that win nothing. And if I add more items, like 5 or 6 different winning blocks, the rate of loss rises to 95% and more! So, that is like, play 20, win one. Pretty dull for the player, right? The jackpot I guess should be somewhere about 100 000, to look nice for the players?\n(if you want, I will create you a google excel sheet, so you can see how exactly the calculations go.)\nBut, then again, you can win by 5 different rows here. So that makes 5x the winning rate? Not really, since you got that neat little line of code that omits duplicates, and this is where I got lost in my math. You see, some times you win, some times you lose, but you cant really control what and when? \nThat actually represents a real slot, good job. But too bad that our minecraft players aren't drunk rich kids (maybe just kids) who are willing to spend a fortune there.\nWhat I am proposing, is a new system for \"calculating\" wins.\nIn the config, instead of number of blocks, add a variable between 0 and 0,4. Lets say, I add one block with a chance of 20%, one block with 12%, another with 8%, and the big prize, maybe 2%? The rest 58% are going to be empty, e.g. not matching rows. \nThose are my thoughts for now, but I will try to come up with more ideas.\nSo far, what is your opinion?"},"comment":{"url":"https://api.github.com/repos/graywolf336/CasinoSlots/issues/comments/153700838","html_url":"https://github.com/graywolf336/CasinoSlots/issues/30#issuecomment-153700838","issue_url":"https://api.github.com/repos/graywolf336/CasinoSlots/issues/30","id":153700838,"user":{"login":"stgram","id":2301128,"avatar_url":"https://avatars.githubusercontent.com/u/2301128?v=3","gravatar_id":"","url":"https://api.github.com/users/stgram","html_url":"https://github.com/stgram","followers_url":"https://api.github.com/users/stgram/followers","following_url":"https://api.github.com/users/stgram/following{/other_user}","gists_url":"https://api.github.com/users/stgram/gists{/gist_id}","starred_url":"https://api.github.com/users/stgram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stgram/subscriptions","organizations_url":"https://api.github.com/users/stgram/orgs","repos_url":"https://api.github.com/users/stgram/repos","events_url":"https://api.github.com/users/stgram/events{/privacy}","received_events_url":"https://api.github.com/users/stgram/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T12:05:53Z","updated_at":"2015-11-04T12:05:53Z","body":"I'm no longer playing minecraft for quite the time now, but despite the initial negative comment I see I have left here, I actually managed to use your plugin quite nicely.\r\nAs far as I remember, I had created a script to randomize the block count and then test every one of them to calculate the chances, from which I then selected the ones I wanted to use. Kind of brute-forcing the combinations, instead of trying to reverse engineer the concept. It worked flawlessly, as I also mentioned, combined with an excel spreadsheet to calculate the total winning chances. If I ever go back to minecraft I will totally use the plugin again, gambling with items, money and command gifts(integration with everything else on the server) is the most addictive thing ever and the players love it."}}