호주에서는 슬롯 머신을 "포키"라고 부릅니다.
JavaScript 및 TypeScript 용 서버 측 비디오 슬롯 게임 로직 프레임 워크 인 Pokie 소개.
npm install pokie
포키를 사용하여 백엔드에서 비디오 슬롯 게임 메커니즘을 구현하십시오. 게임 세션을 만들고 관리하고 직렬화 한 후 API를 통해 페이로드를 게임 클라이언트로 전송합니다.
재미를 위해 플레이 할 때는 클라이언트 측에서 독립형 게임 로직을 구현하여 불필요한로드에서 서버를 완화 할 수 있습니다. 시뮬레이션을 활용하여 데모 목적으로 특정 게임 기능을 보여줍니다.
Pokie는 또한 슬롯 게임의 수학 모델의 매개 변수를 균형있게 유지하기위한 필수 도구 역할을하여 몰입 형 게임 경험을 보장합니다. 게임 세션을 구성하고 Monte Carlo 시뮬레이션을 실행하여 모델이 필요한 모든 요구 사항을 충족하도록 보장하십시오.
Pokie 와 함께 구현 된 다양한 비디오 슬롯 게임 메커니즘의 예를 참조하십시오.
8 개의 우승 라인이있는 간단한 5x4 비디오 슬롯 게임의 예입니다.
특징:
무료 스핀이있는 5x3 비디오 슬롯 게임의 예.
특징:
스티커 리 스핀 기능이있는 5x3 비디오 슬롯 게임의 예. 모든 승리 조합은 모든 승리 기호가 자신의 장소에 고정되는 Re-Spin을 트리거합니다. 새로운 승리가있는 한 다시 스핀은 계속됩니다.
슬롯 게임 수학 모델링에 Pokie를 어떻게 활용할 수 있는지에 대한 중간 기사.
비디오 슬롯 게임 로직.
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"