plentyontwenty

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Jackpot = [8][5]int{
	{0, 0, 0, 0, 0},
	{0, 0, 0, 0, 0},
	{0, 0, 0, 0, 0},
	{0, 0, 0, 0, 0},
	{0, 0, 0, 0, 0},
	{0, 0, 0, 0, 0},
	{0, 0, 0, 0, 0},
	{0, 0, 0, 0, 0},
}

Jackpot win combinations.

View Source
var LinePay = [8][5]float64{
	{0, 0, 40, 400, 1000},
	{0, 0, 20, 80, 400},
	{0, 0, 20, 40, 200},
	{0, 0, 20, 40, 200},
	{0, 0, 10, 20, 100},
	{0, 0, 10, 20, 100},
	{0, 0, 10, 20, 100},
	{0, 0, 0, 0, 0},
}

Lined payment.

View Source
var Reels100 = game.Reels5x{
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
}

reels lengths [29, 29, 29, 29, 29], total reshuffles 20511149 RTP = 94.347(lined) + 6.0684(scatter) = 100.415437%

View Source
var Reels111 = game.Reels5x{
	{1, 5, 5, 5, 2, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 1, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
}

reels lengths [30, 30, 30, 30, 30], total reshuffles 24300000 RTP = 105.35(lined) + 5.45(scatter) = 110.800453%

View Source
var Reels123 = game.Reels5x{
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 1, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 8, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 8, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 8, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 1, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
}

reels lengths [30, 30, 30, 30, 30], total reshuffles 24300000 RTP = 100.88(lined) + 22.6(scatter) = 123.483457%

View Source
var Reels87 = game.Reels5x{
	{1, 5, 5, 5, 2, 2, 2, 2, 2, 6, 6, 6, 3, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 2, 2, 6, 6, 6, 3, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 2, 2, 6, 6, 6, 3, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
}

reels lengths [35, 29, 35, 29, 35], total reshuffles 36057875 RTP = 83.016(lined) + 4.2741(scatter) = 87.290058%

View Source
var Reels88 = game.Reels5x{
	{1, 5, 5, 5, 2, 2, 2, 2, 2, 6, 6, 6, 3, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 2, 6, 6, 6, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 2, 6, 6, 6, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 2, 2, 6, 6, 6, 3, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
}

reels lengths [35, 32, 29, 32, 35], total reshuffles 36377600 RTP = 83.781(lined) + 4.2399(scatter) = 88.020691%

View Source
var Reels89 = game.Reels5x{
	{1, 5, 5, 5, 2, 2, 2, 2, 6, 6, 6, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 2, 6, 6, 6, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 2, 6, 6, 6, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 2, 6, 6, 6, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 2, 6, 6, 6, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
}

reels lengths [32, 32, 32, 32, 32], total reshuffles 33554432 RTP = 84.911(lined) + 4.4458(scatter) = 89.357108%

View Source
var Reels90 = game.Reels5x{
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 2, 2, 6, 6, 6, 3, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 2, 2, 6, 6, 6, 3, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
}

reels lengths [29, 35, 29, 35, 29], total reshuffles 29876525 RTP = 85.332(lined) + 4.8114(scatter) = 90.142947%

View Source
var Reels91 = game.Reels5x{
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
}

reels lengths [31, 31, 31, 31, 31], total reshuffles 28629151 RTP = 86.309(lined) + 4.9135(scatter) = 91.222125%

View Source
var Reels92 = game.Reels5x{
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 2, 6, 6, 6, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 2, 6, 6, 6, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 2, 6, 6, 6, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
}

reels lengths [29, 32, 32, 32, 29], total reshuffles 27557888 RTP = 86.769(lined) + 5.0413(scatter) = 91.809957%

View Source
var Reels93 = game.Reels5x{
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 8, 6, 6, 6, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
}

reels lengths [31, 31, 31, 31, 31], total reshuffles 28629151 RTP = 84.533(lined) + 8.0144(scatter) = 92.546929%

View Source
var Reels94 = game.Reels5x{
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 2, 6, 6, 6, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 2, 6, 6, 6, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
}

reels lengths [29, 32, 29, 32, 29], total reshuffles 24974336 RTP = 89.099(lined) + 5.365(scatter) = 94.464473%

View Source
var Reels95 = game.Reels5x{
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 8, 7, 7, 7, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 8, 7, 7, 7, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8},
}

reels lengths [34, 34, 34, 34, 34], total reshuffles 45435424 RTP = 85.342(lined) + 9.5496(scatter) = 94.891642%

View Source
var Reels96 = game.Reels5x{
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 2, 6, 6, 6, 3, 3, 3, 3, 7, 7, 7, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
}

reels lengths [29, 29, 32, 29, 29], total reshuffles 22632992 RTP = 90.613(lined) + 5.7071(scatter) = 96.320186%

View Source
var Reels99 = game.Reels5x{
	{1, 5, 5, 5, 2, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 8, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
	{1, 5, 5, 5, 2, 2, 2, 2, 6, 6, 6, 3, 3, 3, 7, 7, 7, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
}

reels lengths [30, 30, 30, 30, 30], total reshuffles 24300000 RTP = 89.87(lined) + 8.9(scatter) = 98.770288%

View Source
var ReelsMap = map[float64]*game.Reels5x{
	87.290058:  &Reels87,
	88.020691:  &Reels88,
	89.357108:  &Reels89,
	90.142947:  &Reels90,
	91.222125:  &Reels91,
	91.809957:  &Reels92,
	92.546929:  &Reels93,
	94.464473:  &Reels94,
	94.891642:  &Reels95,
	96.320186:  &Reels96,
	98.770288:  &Reels99,
	100.415437: &Reels100,
	110.800453: &Reels111,
	123.483457: &Reels123,
}

Map with available reels.

View Source
var ScatPay = [5]float64{0, 0, 5, 20, 500} // star

Scatters payment.

Functions

func CalcStat

func CalcStat(ctx context.Context, rn string) float64

func FindReels added in v0.3.0

func FindReels(mrtp float64) (rtp float64, reels game.Reels)

Types

type Game

type Game struct {
	game.Slot5x3 `yaml:",inline"`
}

func NewGame

func NewGame() *Game

func (*Game) ScanLined

func (g *Game) ScanLined(screen game.Screen, wins *game.Wins)

Lined symbols calculation.

func (*Game) ScanScatters

func (g *Game) ScanScatters(screen game.Screen, wins *game.Wins)

Scatters calculation.

func (*Game) Scanner

func (g *Game) Scanner(screen game.Screen, wins *game.Wins)

func (*Game) SetLines

func (g *Game) SetLines(sbl game.Bitset) error

func (*Game) Spin

func (g *Game) Spin(screen game.Screen, mrtp float64)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL