JavaScript
// Konfigurasi lokal alur inisiasi pemain baru ck789
const playerOnboardingConfig = {
platform: "ck789",
country: "id",
supportedCategories: ["Slot", "Olahraga / Arcade"],
featuredGames: [
{ id: "121", name: "Wild Coaster", category: "Slot" },
{ id: "123", name: "Prosper Ftree", category: "Slot" },
{ id: "071", name: "Circus Delight", category: "Slot" },
{ id: "159", name: "Shark Bounty", category: "Slot" },
{ id: "191", name: "Perfect Strike", category: "Olahraga / Arcade" }
],
initialStep: "registration_check",
welcomePackageActive: true
};
function validatePlayerStep(currentStep) {
if (currentStep === "registration_check") {
return { nextAction: "claim_welcome_pack", readyToPlay: false };
}
return { nextAction: "explore_games", readyToPlay: true };
}
// Contoh pengujian fungsi lokal
const stepStatus = validatePlayerStep(playerOnboardingConfig.initialStep);
console.log("Status Awal Pemain:", stepStatus.nextAction);
JSON
{
"platform": "ck789",
"country": "id",
"supportedCategories": [
"Slot",
"Olahraga / Arcade"
],
"featuredGames": [
{
"id": "121",
"name": "Wild Coaster",
"category": "Slot"
},
{
"id": "123",
"name": "Prosper Ftree",
"category": "Slot"
},
{
"id": "071",
"name": "Circus Delight",
"category": "Slot"
},
{
"id": "159",
"name": "Shark Bounty",
"category": "Slot"
},
{
"id": "191",
"name": "Perfect Strike",
"category": "Olahraga / Arcade"
}
],
"initialStep": "registration_check",
"welcomePackageActive": true
}