{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "Concorrenti IA (ai.json)", "type": "object", "properties": { "$schema": { "type": "string" }, "version": { "type": "integer", "minimum": 1 }, "planning": { "type": "object", "properties": { "intervalDays": { "type": "integer", "minimum": 1 }, "maxCandidates": { "type": "integer", "minimum": 1 }, "maxProjectsPerMonth": { "type": "integer", "minimum": 1 }, "candidateMaxDistanceKm": { "type": "number", "exclusiveMinimum": 0 }, "candidateMinDistanceKm": { "type": "number", "minimum": 0 }, "pathSlopePenalty": { "type": "number", "minimum": 0 }, "pathWaterPenalty": { "type": "number", "minimum": 0 }, "steepPenalty": { "type": "number", "minimum": 0 }, "steepGradeFactor": { "type": "number", "exclusiveMinimum": 0 }, "pathMarginRetryKm": { "type": "number", "minimum": 0 }, "trainsPerLine": { "type": "integer", "minimum": 1 }, "wagonsPerTrain": { "type": "integer", "minimum": 1 }, "cashReserveMonths": { "type": "number", "minimum": 0 }, "revenueHorizonYears": { "type": "number", "exclusiveMinimum": 0 }, "maxRejectedShare": { "type": "number", "minimum": 0, "maximum": 1 }, "maxConcurrentProjects": { "type": "integer", "minimum": 1 }, "evaluateTop": { "type": "integer", "minimum": 1 }, "pathMarginKm": { "type": "number", "minimum": 0 }, "simplifyToleranceM": { "type": "number", "minimum": 0 }, "stationOffsetsM": { "type": "array", "minItems": 1, "items": { "type": "number", "minimum": 0 } }, "depotOffsetM": { "type": "number", "minimum": 0 }, "platforms": { "type": "integer", "minimum": 1 }, "hubPlatforms": { "type": "integer", "minimum": 1 }, "assumedEfficiency": { "type": "number", "exclusiveMinimum": 0, "maximum": 1 }, "speedFactor": { "type": "number", "exclusiveMinimum": 0, "maximum": 1 }, "dwellMinutes": { "type": "number", "minimum": 0 }, "maintenanceCostShare": { "type": "number", "minimum": 0, "maximum": 1 }, "trackUpkeepPerKmPerYear": { "type": "integer", "minimum": 0 }, "maxTrainsPerLine": { "type": "integer", "minimum": 1 }, "addTrainWaitingTrips": { "type": "number", "minimum": 0 }, "minCommuters": { "type": "integer", "minimum": 0 }, "commuterCoverage": { "type": "number", "minimum": 0, "maximum": 1 }, "hubShare": { "type": "number", "minimum": 0, "maximum": 1 }, "noPartsFactor": { "type": "number", "minimum": 0, "maximum": 1 }, "townBonus": { "type": "number", "minimum": 1, "maximum": 10 }, "townRoiFactor": { "type": "number", "exclusiveMinimum": 0, "maximum": 1 }, "repayCashMonths": { "type": "number", "minimum": 0 }, "planningDaySpacing": { "type": "integer", "minimum": 0 }, "failedMemory": { "type": "integer", "minimum": 0 }, "partsDeferYears": { "type": "number", "minimum": 0, "maximum": 10 } }, "required": [ "intervalDays", "maxCandidates", "maxProjectsPerMonth", "candidateMaxDistanceKm", "candidateMinDistanceKm", "pathSlopePenalty", "pathWaterPenalty", "steepPenalty", "steepGradeFactor", "pathMarginRetryKm", "trainsPerLine", "wagonsPerTrain", "cashReserveMonths", "revenueHorizonYears", "maxRejectedShare", "maxConcurrentProjects", "evaluateTop", "pathMarginKm", "simplifyToleranceM", "stationOffsetsM", "depotOffsetM", "platforms", "hubPlatforms", "assumedEfficiency", "speedFactor", "dwellMinutes", "maintenanceCostShare", "trackUpkeepPerKmPerYear", "maxTrainsPerLine", "addTrainWaitingTrips", "minCommuters", "commuterCoverage", "hubShare", "noPartsFactor", "townBonus", "townRoiFactor", "repayCashMonths", "planningDaySpacing", "failedMemory", "partsDeferYears" ], "additionalProperties": false }, "personalities": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[a-z][a-z0-9_]*$" }, "name_it": { "type": "string", "minLength": 1 }, "roiThreshold": { "type": "number", "minimum": 0, "maximum": 1 }, "loanShareOfCredit": { "type": "number", "minimum": 0, "maximum": 1 }, "targetsPlayer": { "type": "boolean" }, "buysShares": { "type": "boolean" }, "maintenancePolicy": { "type": "string", "enum": [ "economy", "standard", "thorough" ] } }, "required": [ "id", "name_it", "roiThreshold", "loanShareOfCredit", "targetsPlayer", "buysShares", "maintenancePolicy" ], "additionalProperties": false }, "minItems": 3 }, "bots": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[a-z][a-z0-9_]*$" }, "name_it": { "type": "string", "minLength": 1 }, "roiThreshold": { "type": "number", "minimum": 0, "maximum": 1 }, "loanShareOfCredit": { "type": "number", "minimum": 0, "maximum": 1 }, "targetsPlayer": { "type": "boolean" }, "buysShares": { "type": "boolean" }, "maintenancePolicy": { "type": "string", "enum": [ "economy", "standard", "thorough" ] } }, "required": [ "id", "name_it", "roiThreshold", "loanShareOfCredit", "targetsPlayer", "buysShares", "maintenancePolicy" ], "additionalProperties": false }, "minItems": 1 }, "companyNames": { "type": "array", "items": { "type": "string", "minLength": 1 }, "minItems": 4, "uniqueItems": true }, "colors": { "type": "array", "items": { "type": "string", "pattern": "^#[0-9a-fA-F]{6}$" }, "minItems": 1 }, "renewal": { "type": "object", "properties": { "minSupersededYears": { "type": "number", "minimum": 0 }, "minAgeShareOfLife": { "type": "number", "minimum": 0 }, "cashReserveMultiple": { "type": "number", "minimum": 0 }, "maxTrainsPerMonth": { "type": "integer", "minimum": 0 } }, "required": [ "minSupersededYears", "minAgeShareOfLife", "cashReserveMultiple", "maxTrainsPerMonth" ], "additionalProperties": false }, "trading": { "type": "object", "properties": { "enabled": { "type": "boolean" }, "minMargin": { "type": "number", "minimum": 0, "maximum": 5 }, "priceSlack": { "type": "number", "minimum": 0, "maximum": 1 }, "minSellPriceShare": { "type": "number", "minimum": 0, "maximum": 3 }, "maxUnits": { "type": "integer", "minimum": 1 }, "maxTradesPerMonth": { "type": "integer", "minimum": 0 }, "cashShare": { "type": "number", "minimum": 0, "maximum": 1 }, "cashReserveMultiple": { "type": "number", "minimum": 0 } }, "required": [ "enabled", "minMargin", "priceSlack", "minSellPriceShare", "maxUnits", "maxTradesPerMonth", "cashShare", "cashReserveMultiple" ], "additionalProperties": false }, "market": { "type": "object", "additionalProperties": { "type": [ "number", "integer", "boolean" ] } } }, "required": [ "version", "planning", "personalities", "companyNames", "colors", "market", "renewal", "trading", "bots" ], "additionalProperties": false }