Model skrip dan representasi data konfigurasi permainan lokal zk9.
JavaScript
const zk9GameCatalog = [
{ id: '146', title: 'Tsar Treasures', category: 'Slot' },
{ id: '180', title: 'Majestic Emp', category: 'Slot' },
{ id: '104', title: 'Lgd Monkey Kg', category: 'Slot' },
{ id: '185', title: 'Poker Kingdom', category: 'Kartu' },
{ id: '046', title: 'Flirting Scholar', category: 'Slot' }
];
function getGameInfo(gameId) {
return zk9GameCatalog.find(item => item.id === gameId) || null;
}
// Pengujian pemetaan lokal
const selected = getGameInfo('146');
console.log('Game terpilih:', selected ? selected.title : 'Tidak ditemukan');
JSON
{
"platform": "zk9",
"country": "id",
"supported_games": [
{
"id": "146",
"name": "Tsar Treasures",
"type": "Slot"
},
{
"id": "180",
"name": "Majestic Emp",
"type": "Slot"
},
{
"id": "104",
"name": "Lgd Monkey Kg",
"type": "Slot"
},
{
"id": "185",
"name": "Poker Kingdom",
"type": "Kartu"
},
{
"id": "046",
"name": "Flirting Scholar",
"type": "Slot"
}
]
}