老虎机支付计算 [英] slot machine payout calculation

查看:105
本文介绍了老虎机支付计算的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个 5个卷轴老虎机计算系统,我不知道采取什么方法。



有很多数学内,特别是如果我想让机器是一个玩家愉快的。



有什么提示/链接吗?正在寻找网络上的信息,但他们从玩家的角度讨论它,而不是从开发者的角度,在我发现的所有情况下。



只是为了清楚;我不是在用户界面的东西后,但只有在内部机器的支付计算后,这将确保房子获得收入,同时保持良好的可玩性。



编程语言将是C ++,但我很满意别人。

解决方案

首先确定整机的长期支付应该是什么。例如每$ 1 $ 0.95。



然后你看看你所有的获胜组合,发生的组合的赔率和组合的支付。将它们全部加在一起,它应该等于你想要的长期支付。



技巧是平衡组合,所以你有一些容易命中,并付出低,保持支付每隔一段时间发生,一个非常难以击中,但支付高,所以总是有一个大的支出的机会。



数学的快速示例:如果你有一个3卷轴机器有10个槽(称它们为AJ),并且您希望每一美元长期支付0.95美元,那么您可能会:



AAA - 赔率0.001 - 支付$ 500 - 预期支付 - $ 0.50

A-- - 赔率0.100 - 支付$ 3 - 预期付款 - $ 0.30

B-- - 赔率0.100 - 支付$ 1.50 - 预期付款 - $ 0.15


I want to create a 5 reels slot machine calculation system and I'm not sure what approach to take.

I understand that there is a lot of math within it, especially if I want the machine to be enjoyable to a player.

Are there any tips/links for that? Was looking for info at the web but they discuss on it from the player's perspective rather than the developer's perspective, in all cases I've found.

Just to make it clear; I'm not after the user interface stuff, but only after the internal machine's payout calculation, which will make sure the house gets a revenue while maintaining good playability.

Programming language would be C++, yet I'm fine with others.

解决方案

As Phong noted, you need to first determine what the overall, long-term payout of the machine should be. e.g. $0.95 for every $1.

You then look at all your winning combinations, the odds of that combination occurring, and the payout of that combination. Add them all together and it should be equal to your desired long term payout.

The trick then is to balance the combinations so you have a few ones that are easy to hit, and pay low, to keep payouts happening every so often, and a one that is very hard to hit, but pays high, so there's always the chance of a big payout.

It's really all about design and maths, rather than implementation and coding.

Quick example of the maths: If you had a 3 reel machine with 10 slots (call them A-J) on each reel, and you wanted to payout $0.95 for every dollar long term, then you might have:

AAA - odds 0.001 - pays $500 - expected payout - $0.50
A-- - odds 0.100 - pays $3 - expected payout - $0.30
B-- - odds 0.100 - pays $1.50 - expected payout - $0.15

这篇关于老虎机支付计算的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆