json
{
"__typename": "Query",
"gameTemplates": [
{
"__typename": "LobbyTemplateData",
"templateId": "temp_001",
"gameId": "game_ludo_01",
"baseChannelId": 101,
"createdAt": 1633046400,
"updatedAt": 1633047400,
"ruleConfig": {
"ruleId": "rule_001",
"ruleName": "Standard Rules",
"tokens": 4,
"tokenPos": [0, 0, 0, 0],
"endType": "reachAll",
"gameEndValue": 100,
"dieValueToStartGame": 6,
"pointsPerTileMove": 1,
"bonusPointForHome": 5,
"bonusPointOpponentCut": 2,
"additionalMoves": true,
"consecutiveSixesForEndTurn": 1,
"turnTime": 30,
"extraTime": 10,
"skipsAllowed": 2,
"safeTiles": [5, 10, 15],
"safeTileWithdrawal": 0,
"gameConfigs": {
"noOfColorsPerPlayer": 4,
"tilesBetweenAdjacentPlayer": 2,
"noOfTilesInHome": 3
},
"additionalInfo": {
"takingPawnHome": true,
"rollingSix": true,
"killingOpponent": true
},
"variationType": "classic",
"variationConfig": "no time limit"
},
"templateName": "Classic Ludo",
"entryFee": 20,
"serviceFeeType": "percentage",
"serviceFee": 5,
"prizePool": 200,
"prizeType": "fixed",
"prizes": [
{
"prizeId": "prize_001",
"description": "First Place",
"amount": 100
},
{
"prizeId": "prize_002",
"description": "Second Place",
"amount": 50
},
{
"prizeId": "prize_003",
"description": "Third Place",
"amount": 30
}
],
"playerCount": 4,
"section2Text": ["Join our tournament!", "Win exciting prizes!"],
"section3Text": ["Perfect for casual players", "Easy to learn, hard to master"],
"recommended": true,
"discount": {
"promoCode": 1001,
"finalEntryFee": 15,
"validity": "2023-12-31",
"finalEntryFeeFormatted": "$15.00",
"discountType": 1,
"discountShowExpiry": true
},
"sequence": 1,
"onlinePlayerCount": 50
},
{
"__typename": "LobbyTemplateData",
"templateId": "temp_002",
"gameId": "game_ludo_02",
"baseChannelId": 102,
"createdAt": 1633046400,
"updatedAt": 1633047400,
"ruleConfig": {
"ruleId": "rule_002",
"ruleName": "Speed Ludo",
"tokens": 4,
"tokenPos": [0, 0, 0, 0],
"endType": "reachHome",
"gameEndValue": 50,
"dieValueToStartGame": 5,
"pointsPerTileMove": 1,
"bonusPointForHome": 10,
"bonusPointOpponentCut": 3,
"additionalMoves": false,
"consecutiveSixesForEndTurn": 0,
"turnTime": 15,
"extraTime": 5,
"skipsAllowed": 1,
"safeTiles": [3, 7, 11],
"safeTileWithdrawal": 1,
"gameConfigs": {
"noOfColorsPerPlayer": 2,
"tilesBetweenAdjacentPlayer": 3,
"noOfTilesInHome": 2
},
"additionalInfo": {
"takingPawnHome": false,
"rollingSix": false,
"killingOpponent": true
},
"variationType": "timed",
"variationConfig": "5-minute limit"
},
"templateName": "Speedy Ludo",
"entryFee": 10,
"serviceFeeType": "fixed",
"serviceFee": 2,
"prizePool": 100,
"prizeType": "percentage",
"prizes": [
{
"prizeId": "prize_004",
"description": "First Place",
"amount": 50
},
{
"prizeId": "prize_005",
"description": "Second Place",
"amount": 30
},
{
"prizeId": "prize_006",
"description": "Third Place",
"amount": 20
}
],
"playerCount": 2,
"section2Text": ["Fast-paced action!", "Are you quick enough?"],
"section3Text": ["Perfect for competitive players", "Tests your speed and strategy"],
"recommended": true,
"discount": {
"promoCode": 1002,
"finalEntryFee": 8,
"validity": "2023-12-31",
"finalEntryFeeFormatted": "$8.00",
"discountType": 2,
"discountShowExpiry": false
},
"sequence": 2,
"onlinePlayerCount": 30
}
]
}
This JSON structure includes two sample Ludo lobby templates with varied rules, entry fees, prizes, and configurations. Adjust or expand as needed!