pokie
1.0.0
在澳大利亚,他们称老虎机为“ pokies”。
引入Pokie ,这是一个用于JavaScript和Typescript的服务器端视频插槽游戏逻辑框架。
npm install pokie
利用Pokie在后端实现视频插槽游戏机制。创建和管理游戏会话,序列化,然后通过API将有效载荷传输到游戏客户端。
玩乐时,您可以在客户端上实现独立的游戏逻辑,从而使服务器免于不必要的负载。利用仿真来展示特定的游戏功能以进行演示。
Pokie也是平衡老虎机数学模型参数的重要工具,确保了身临其境的游戏体验。配置游戏会话并运行蒙特卡洛模拟,以确保该模型满足所有必要的要求。
请参阅Pokie实施的各种视频插槽游戏机制的示例。
一个简单的5x4视频插槽游戏的示例,该游戏具有8个获胜线。
特征:
带有免费旋转的5x3视频插槽游戏的示例。
特征:
具有粘性重新旋转功能的5x3视频插槽游戏的示例。每种获胜的组合都会触发重新旋转,在此期间,所有获胜的符号都在其位置举行。只要有新的胜利,重新旋转就可以继续。
一篇关于如何用于老虎机游戏数学建模的中等文章。
视频插槽游戏逻辑。
import { VideoSlotSession } from "pokie" ;
const session = new VideoSlotSession ( ) ;
session . play ( ) ;
session . getSymbolsCombination ( ) ; // symbols combination
session . getWinAmount ( ) ; // total round win amount
session . getWinningLines ( ) ; // winning lines data
session . getWinningScatters ( ) ; // winning scatters data运行一定数量的游戏回合并计算RTP。
import { SimulationConfig , Simulation } from "pokie" ;
const simulationConfig = new SimulationConfig ( ) ;
simulationConfig . setNumberOfRounds ( 10000 ) ;
const simulation = new Simulation ( session , simulationConfig ) ;
// set the callbacks if you want to control the session manually
simulation . beforePlayCallback = ( ) => {
console . log ( "Before play" ) ;
} ;
simulation . afterPlayCallback = ( ) => {
console . log ( "After play" ) ;
} ;
simulation . onFinishedCallback = ( ) => {
console . log ( "Simulation finished" ) ;
} ;
simulation . run ( ) ; // 10000 rounds will be played
simulation . getRtp ( ) ; // RTP of the current session捕获特定的游戏功能。
const simulationConfig = new SimulationConfig ( ) ;
simulationConfig . setNumberOfRounds ( Infinity ) ;
simulationConfig . setPlayStrategy ( new PlayUntilSymbolWinStrategy ( "A" ) ) ;
const simulation = new Simulation ( session , simulationConfig ) ;
simulation . run ( ) ; // the simulation will be stopped on any winning combination with symbol "A"