{
	"general": {
		"appName": "Tic Tac Toe",
		"appVersion": "1.0 (Oct 01 2026 00:03)",
		"errorMode": "error",
		"honorReducedMotionPreference": false,
		"followSystemDarkModeForTheWall": true,
		"maximumLogEntries": 300,
		"contactUrl": "https://www.haik.org",
		"diagnosticLogRevealLongPressMilliseconds": 2000,
		"enableServiceWorker": true,
		"registerServiceWorkerOnLocalhost": false
	},
	"languages": [
		{
			"name": "English",
			"textLabelFile": "data/textLabelsEnglish.json",
			"default": true
		}
	],
	"storage": {
		"enablePersistence": true,
		"localStorageKeyPrefix": "tictactoe.",
		"rememberPlayersScoresAndBoardBetweenVisits": true
	},
	"game": {
		"alternateFirstPlayerEachGame": true,
		"automaticallyStartNewGameAfterDraw": true,
		"delayBeforeWipingDrawnBoardMilliseconds": 2200,
		"automaticallyStartNewGameAfterWin": false,
		"delayBeforeWipingWonBoardMilliseconds": 3500,
		"maximumPlayerNameLength": 24,
		"defaultMode": "computer"
	},
	"computer": {
		"defaultDifficulty": "medium",
		"thinkingDelayMilliseconds": 650,
		"difficulties": [
			{
				"id": "easy",
				"chanceOfPlayingBestMove": 0.15,
				"alwaysTakeWinningMove": false
			},
			{
				"id": "medium",
				"chanceOfPlayingBestMove": 0.6,
				"alwaysTakeWinningMove": true
			},
			{
				"id": "hard",
				"chanceOfPlayingBestMove": 1,
				"alwaysTakeWinningMove": true
			}
		]
	},
	"chalk": {
		"strokeDrawMilliseconds": 260,
		"pauseBetweenStrokesOfOneMarkMilliseconds": 60,
		"winningLineDrawMilliseconds": 420,
		"eraserSwipeMilliseconds": 780,
		"markWobbleInBoardUnits": 3.5,
		"ghostMarkOpacityAfterErasing": 0.07,
		"numberOfErasedGamesThatLeaveGhosts": 2,
		"colors": [
			{
				"id": "pink",
				"chalk": "#e0457b",
				"dust": "rgba(224, 69, 123, 0.28)",
				"inkOnLight": "#b3265a",
				"inkOnDark": "#f27aa3"
			},
			{
				"id": "green",
				"chalk": "#2f9a55",
				"dust": "rgba(47, 154, 85, 0.28)",
				"inkOnLight": "#1f7440",
				"inkOnDark": "#6fd394"
			},
			{
				"id": "blue",
				"chalk": "#2f7fd6",
				"dust": "rgba(47, 127, 214, 0.28)",
				"inkOnLight": "#1f5aa6",
				"inkOnDark": "#7fb6f5"
			},
			{
				"id": "orange",
				"chalk": "#ee8a2a",
				"dust": "rgba(238, 138, 42, 0.3)",
				"inkOnLight": "#a8540c",
				"inkOnDark": "#ffb870"
			},
			{
				"id": "purple",
				"chalk": "#8f5bd6",
				"dust": "rgba(143, 91, 214, 0.28)",
				"inkOnLight": "#6a3bb0",
				"inkOnDark": "#c3a2f5"
			},
			{
				"id": "yellow",
				"chalk": "#e8c21e",
				"dust": "rgba(232, 194, 30, 0.32)",
				"inkOnLight": "#7a6300",
				"inkOnDark": "#ffe066"
			},
			{
				"id": "teal",
				"chalk": "#1ea5a0",
				"dust": "rgba(30, 165, 160, 0.28)",
				"inkOnLight": "#0f6f6b",
				"inkOnDark": "#6fe0da"
			}
		]
	},
	"space": {
		"enableSpaceModeFeature": true,
		"maximumDevicePixelRatio": 1.75,
		"maximumDevicePixelRatioOnPhones": 1.25,
		"adaptiveQualityTargetFramesPerSecond": 50,
		"starCount": 2600,
		"starCountOnPhones": 1100,
		"baseTravelSpeed": 1,
		"maximumTravelSpeedAtPeakExcitement": 3.2,
		"pointerParallaxStrength": 0.35,
		"boardTiltDegrees": 14,
		"encounterFrequencyPerMinute": 70,
		"spaceJunkMemoryChance": 0.04,
		"adaptiveQualityMinimumPixelRatio": 0.6,
		"adaptiveQualitySampleFrames": 90,
		"phoneShortSideMaximumPixels": 820,
		"starFieldDepth": 700,
		"starStreakLengthAtRest": 0.6,
		"starStreakLengthAtPeakExcitement": 34,
		"travelUnitsPerSecondAtBaseSpeed": 38,
		"pointerBoardTiltDegrees": 0,
		"boardShakeTimeFraction": 0.02,
		"boardShakeEpisodeSeconds": 1.2,
		"chromeGridOvershootFraction": 0.05,
		"chromeGridMinimumGlassMarginPixels": 8,
		"chromeTubeRadiusFraction": 0.022,
		"chromeReflectionResolution": 128,
		"chromeReflectionResolutionOnPhones": 64,
		"chromeReflectionEveryFrames": 4,
		"chromeReflectionEveryFramesOnPhones": 8,
		"glassReflectionOpacity": 0.12,
		"cameraShakeAtPeakExcitement": 0.08,
		"planetsPerMinute": 25,
		"dimensionPlaneMinimumSecondsBetween": 120,
		"dimensionPlaneExtraRandomSeconds": 60,
		"dimensionPlaneSpeedMultiplier": 5,
		"disintegratorWaveChance": 0.25,
		"frameRateChoices": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 30, 45, 60, 90, 120, 144, 1000],
		"unlimitedFrameRateValue": 1000,
		"powerSaverMaximumFramesPerSecond": 30,
		"powerSaverMaximumPixelRatio": 1,
		"powerSaverReflectionSlowdown": 3,
		"automaticPowerSaverBelowBatteryLevel": 0.2,
		"gasCloudCount": 4,
		"gasCloudCountOnPhones": 2,
		"nebulaNoiseOctaves": 5,
		"nebulaNoiseOctavesOnPhones": 3,
		"excitementSmoothingPerSecond": 1.6,
		"winWarpBurstSeconds": 3.2,
		"photonDisintegratorFlashSeconds": 0.7,
		"burstParticleCount": 360,
		"deviceSteeringEnabled": true,
		"deviceSteeringStrength": 1,
		"deviceSteeringFullTiltDegrees": 25,
		"soundFieldUpdateMilliseconds": 250,
		"guestSpawnDistance": 2000,
		"guestFadeInDistance": 600,
		"guestFringeBias": 0.35,
		"guestClosePassShare": 0.4,
		"maximumGuestsOnScreen": 50,
		"maximumGuestsOnScreenOnPhones": 30,
		"fringeGuestsPerMinute": 20,
		"fringeGuestsPerMinuteOnPhones": 15,
		"nebulaZoomPercentPerTenSecondsAtBaseSpeed": 2,
		"linerCourseChangeChance": 0.5,
		"linerMinimumScale": 0.6,
		"linerMaximumScale": 1.8
	},
	"sound": {
		"masterVolume": 0.55,
		"soundEffectsVolumeRelativeToMusic": 0.5,
		"reverbSeconds": 2.4,
		"echoDelaySeconds": 0.28,
		"echoFeedback": 0.32,
		"phaserRateHz": 0.35,
		"generativeMusicInSpaceMode": true,
		"soundEffectsByDefaultOnWhiteboard": true,
		"soundEffectsByDefaultInSpaceMode": true,
		"musicByDefaultOnWhiteboard": false,
		"musicByDefaultInSpaceMode": true,
		"spaceMusicVolume": 0.18,
		"spaceMusicBedLevel": 0.35,
		"spaceMusicTempoBpm": 84,
		"spaceMusicFadeInSeconds": 3,
		"spaceMusicFadeOutSeconds": 1.5,
		"spaceMusicMaximumVoices": 14,
		"softPulseVolume": 0.1,
		"musicVolumeScaleInTwoDimensionalMode": 0.7,
		"chordProgressionSecondsPerChord": 24,
		"chordChangeTimingRandomness": 0.15,
		"minimumSecondsBetweenChordChanges": 12,
		"chordCrossfadeSeconds": 3.75,
		"suspensionResolveSeconds": 5,
		"suspensionResolveMaximumSemitones": 3,
		"chordProgressionToggleSeconds": 6,
		"chordPadVolume": 0.7,
		"tonicChordPadDecibels": -2,
		"tonicChordDurationScale": 0.6,
		"padLowestHz": 98,
		"padHighestHz": 330,
		"pedalRootChoices": [
			"D",
			"E",
			"F",
			"G",
			"A",
			"C"
		],
		"chorusRateHz": 0.3,
		"chorusDepthMilliseconds": 4,
		"flangerRateHz": 0.08,
		"flangerFeedback": 0.45,
		"maximumSimultaneousVoices": 12,
		"excitementVolumeBoost": 0.35,
		"excitementBrightnessBoost": 0.8,
		"progressionWeightAeolianDrift": 1,
		"progressionWeightAeolianDescent": 1,
		"progressionWeightDorianSway": 1,
		"progressionWeightMixolydianHorizon": 1,
		"progressionWeightLydianGlow": 1,
		"progressionWeightIonianBloom": 1,
		"startOnSecondChordChance": 0.5,
		"layerPresenceNebula": 1,
		"layerPresenceGasCloud": 1,
		"layerPresenceDimensionPlane": 1,
		"layerPresencePlanet": 1,
		"layerPresenceSun": 1,
		"layerPresenceShip": 1,
		"layerPresenceFighter": 1,
		"layerPresenceBattle": 1,
		"layerPresenceSatellite": 0.35,
		"layerPresenceJunk": 1,
		"battleLaserChance": 0.12,
		"battleRumbleChance": 0.5
	},
	"userSettingsDefaults": {
		"animateChalk": true,
		"spaceMode": false,
		"soundEffectsPreference": "auto",
		"musicPreference": "auto",
		"chordProgressions": true,
		"soundEffectsRelativeVolume": 0.5,
		"powerSaver": false,
		"maximumFramesPerSecond": 1000,
		"singleKeyShortcuts": true,
		"chalkColorX": "pink",
		"chalkColorO": "green"
	},
	"webMcp": {
		"enableWebMcpTools": true,
		"originTrialToken": "",
		"toolDescriptions": {
			"getGameState": "Read the current tic-tac-toe game: the board as rows and columns numbered 1 to 3, whose turn it is, which player (if any) is the computer, the legal moves, the result if the game is over, and the running score. Call this first, and again whenever you are unsure of the board.",
			"makeMove": "Place the current player's mark (X or O) in an empty square. Rows and columns are numbered 1 to 3 from the top-left corner. When playing against the computer, only the human player's moves are accepted; the computer answers automatically, and its reply is included in the result.",
			"startNewGame": "Wipe the board and start the next game with the same players. The score is kept. Use this after a win, or whenever the players want to play again.",
			"setUpMatch": "Choose who is playing and start a fresh match: either one person against the computer (at easy, medium or hard difficulty) or two people taking turns on this device. Setting up a match resets the score to zero. Against the computer, the person is X. Each player's chalk colour is shown in the state (players.X.chalk, players.O.chalk) as a palette id or a \"#rrggbb\" colour; get_settings and change_settings read and change it.",
			"resetScores": "Set the running score (X wins, O wins, draws) back to zero without changing the players or the board.",
			"getSettings": "Read every setting a person can change in the game's Settings dialog, with its current value and the values it accepts: animateChalk, spaceMode (the space scene; spaceModeShowing says whether it is on screen right now), soundEffects, music, chordProgressions (slow chord progressions under the music's soft pulse; on by default), singleKeyShortcuts (1 to 9 play a square, N starts a new game, X hides the board in Space Mode) and each player's chalk colour (chalkColorX, chalkColorO: a palette id from chalkColors, or a \"#rrggbb\" colour a person picked; chalkColorDetails gives each one's hex and nearest palette colour). It also reports appVersion, the app's version (read-only). soundEffects and music report whether they are on now; until the person flips them, sound effects are on in both modes and music is on in Space Mode and off on the whiteboard. The browser only lets audio start after the person has clicked or pressed a key on the page; audioUnlocked says whether that has happened.",
			"changeSettings": "Change one or more of the game's settings, the same switches a person has in the Settings dialog. Pass only the settings to change. Switching spaceMode on or off hands soundEffects and music back to the new mode's defaults (sound effects on in both modes, music on in Space Mode and off on the whiteboard) unless the same call sets them. A chalk colour is a palette id from get_settings chalkColors or any \"#rrggbb\" colour; X and O cannot share a colour or use two that look too alike. Only change settings the person asked for; these are their preferences and are remembered on this device. The result lists what changed and the new settings. Sound and music are only heard after the person has clicked or pressed a key on the page."
		},
		"parameterDescriptions": {
			"row": "Row number, 1 (top) to 3 (bottom).",
			"column": "Column number, 1 (left) to 3 (right).",
			"mode": "\"computer\" for one person against the computer, \"two_players\" for two people sharing this device.",
			"playerXName": "Name of the person playing X.",
			"playerOName": "Name of the person playing O. Ignored when playing against the computer.",
			"computerDifficulty": "How well the computer plays: \"easy\", \"medium\", or \"hard\" (hard never loses).",
			"animateChalk": "true to animate the chalk as it writes and wipes; false to draw marks instantly.",
			"spaceMode": "true for Space Mode, the game played in a 3D space scene; false for the flat whiteboard.",
			"soundEffects": "true to play sound effects (chalk, wins, draws), false to silence them.",
			"music": "true to play music, false to stop it.",
			"chordProgressions": "true to play slow chord progressions under the music's soft pulse; it only matters while music plays.",
			"singleKeyShortcuts": "true to let single keys (1 to 9, N, X) control the game; false turns them off, for example for speech input.",
			"chalkColorX": "Chalk colour for X: an id from get_settings chalkColors, or any \"#rrggbb\" colour. It cannot be O's colour or look too much like it.",
			"chalkColorO": "Chalk colour for O: an id from get_settings chalkColors, or any \"#rrggbb\" colour. It cannot be X's colour or look too much like it."
		}
	},
	"controlCenter": {
		"enableControlCenter": true,
		"rebuildDelayMilliseconds": 600,
		"settingsBlock": "space",
		"groups": [
			{
				"id": "guests",
				"parameters": [
					{ "key": "guestSpawnDistance", "min": 300, "max": 2400, "step": 50, "restarts": true },
					{ "key": "guestFadeInDistance", "min": 20, "max": 1200, "step": 10, "restarts": true },
					{ "key": "maximumGuestsOnScreen", "min": 2, "max": 100, "step": 1, "device": "desktop" },
					{ "key": "maximumGuestsOnScreenOnPhones", "min": 2, "max": 100, "step": 1, "device": "phone" },
					{ "key": "encounterFrequencyPerMinute", "min": 0, "max": 200, "step": 1 },
					{ "key": "planetsPerMinute", "min": 0, "max": 200, "step": 1 },
					{ "key": "fringeGuestsPerMinute", "min": 0, "max": 200, "step": 1, "device": "desktop" },
					{ "key": "fringeGuestsPerMinuteOnPhones", "min": 0, "max": 200, "step": 1, "device": "phone" },
					{ "key": "guestFringeBias", "min": 0, "max": 1, "step": 0.01 },
					{ "key": "guestClosePassShare", "min": 0, "max": 1, "step": 0.01 },
					{ "key": "spaceJunkMemoryChance", "min": 0, "max": 1, "step": 0.01 },
					{ "key": "linerCourseChangeChance", "min": 0, "max": 1, "step": 0.01 },
					{ "key": "linerMinimumScale", "min": 0.1, "max": 5, "step": 0.05 },
					{ "key": "linerMaximumScale", "min": 0.1, "max": 5, "step": 0.05 }
				]
			},
			{
				"id": "flight",
				"parameters": [
					{ "key": "baseTravelSpeed", "min": 0, "max": 10, "step": 0.05 },
					{ "key": "maximumTravelSpeedAtPeakExcitement", "min": 0, "max": 20, "step": 0.1 },
					{ "key": "travelUnitsPerSecondAtBaseSpeed", "min": 1, "max": 400, "step": 1 },
					{ "key": "excitementSmoothingPerSecond", "min": 0.05, "max": 20, "step": 0.05 },
					{ "key": "winWarpBurstSeconds", "min": 0, "max": 20, "step": 0.1 },
					{ "key": "cameraShakeAtPeakExcitement", "min": 0, "max": 1, "step": 0.01 },
					{ "key": "pointerParallaxStrength", "min": 0, "max": 2, "step": 0.01 },
					{ "key": "deviceSteeringStrength", "min": 0, "max": 3, "step": 0.05 },
					{ "key": "deviceSteeringFullTiltDegrees", "min": 3, "max": 90, "step": 1 }
				]
			},
			{
				"id": "starsAndNebula",
				"parameters": [
					{ "key": "starCount", "min": 100, "max": 20000, "step": 100, "restarts": true, "device": "desktop" },
					{ "key": "starCountOnPhones", "min": 100, "max": 20000, "step": 100, "restarts": true, "device": "phone" },
					{ "key": "starFieldDepth", "min": 100, "max": 1400, "step": 10, "restarts": true },
					{ "key": "starStreakLengthAtRest", "min": 0, "max": 50, "step": 0.1 },
					{ "key": "starStreakLengthAtPeakExcitement", "min": 0, "max": 200, "step": 1 },
					{ "key": "gasCloudCount", "min": 0, "max": 12, "step": 1, "restarts": true, "device": "desktop" },
					{ "key": "gasCloudCountOnPhones", "min": 0, "max": 12, "step": 1, "restarts": true, "device": "phone" },
					{ "key": "nebulaNoiseOctaves", "min": 1, "max": 8, "step": 1, "restarts": true, "device": "desktop" },
					{ "key": "nebulaNoiseOctavesOnPhones", "min": 1, "max": 8, "step": 1, "restarts": true, "device": "phone" },
					{ "key": "nebulaZoomPercentPerTenSecondsAtBaseSpeed", "min": 0, "max": 50, "step": 0.5 }
				]
			},
			{
				"id": "grids",
				"parameters": [
					{ "key": "dimensionPlaneMinimumSecondsBetween", "min": 10, "max": 600, "step": 5 },
					{ "key": "dimensionPlaneExtraRandomSeconds", "min": 0, "max": 600, "step": 5 },
					{ "key": "dimensionPlaneSpeedMultiplier", "min": 0.1, "max": 20, "step": 0.1 }
				]
			},
			{
				"id": "board",
				"parameters": [
					{ "key": "boardTiltDegrees", "min": 0, "max": 30, "step": 0.5 },
					{ "key": "pointerBoardTiltDegrees", "min": 0, "max": 10, "step": 0.1 },
					{ "key": "boardShakeTimeFraction", "min": 0, "max": 1, "step": 0.005 },
					{ "key": "boardShakeEpisodeSeconds", "min": 0.1, "max": 10, "step": 0.1 },
					{ "key": "chromeTubeRadiusFraction", "min": 0.002, "max": 0.1, "step": 0.001 },
					{ "key": "chromeGridOvershootFraction", "min": 0, "max": 1, "step": 0.01 },
					{ "key": "chromeGridMinimumGlassMarginPixels", "min": 0, "max": 64, "step": 1 },
					{ "key": "glassReflectionOpacity", "min": 0, "max": 1, "step": 0.01 },
					{ "key": "chromeReflectionResolution", "min": 16, "max": 512, "step": 16, "restarts": true, "device": "desktop" },
					{ "key": "chromeReflectionResolutionOnPhones", "min": 16, "max": 512, "step": 16, "restarts": true, "device": "phone" },
					{ "key": "chromeReflectionEveryFrames", "min": 1, "max": 60, "step": 1, "device": "desktop" },
					{ "key": "chromeReflectionEveryFramesOnPhones", "min": 1, "max": 60, "step": 1, "device": "phone" }
				]
			},
			{
				"id": "effects",
				"parameters": [
					{ "key": "photonDisintegratorFlashSeconds", "min": 0, "max": 5, "step": 0.05 },
					{ "key": "disintegratorWaveChance", "min": 0, "max": 1, "step": 0.01 },
					{ "key": "burstParticleCount", "min": 0, "max": 5000, "step": 10, "restarts": true }
				]
			},
			{
				"id": "performance",
				"parameters": [
					{ "key": "maximumDevicePixelRatio", "min": 0.5, "max": 4, "step": 0.05, "device": "desktop" },
					{ "key": "maximumDevicePixelRatioOnPhones", "min": 0.5, "max": 4, "step": 0.05, "device": "phone" },
					{ "key": "adaptiveQualityTargetFramesPerSecond", "min": 10, "max": 144, "step": 1 },
					{ "key": "adaptiveQualityMinimumPixelRatio", "min": 0.3, "max": 2, "step": 0.05 },
					{ "key": "adaptiveQualitySampleFrames", "min": 20, "max": 1000, "step": 10 },
					{ "key": "powerSaverMaximumFramesPerSecond", "min": 1, "max": 240, "step": 1 },
					{ "key": "powerSaverMaximumPixelRatio", "min": 0.5, "max": 3, "step": 0.05 },
					{ "key": "powerSaverReflectionSlowdown", "min": 1, "max": 10, "step": 1 }
				]
			},
			{
				"id": "musicStyles",
				"block": "sound",
				"parameters": [
					{ "key": "progressionWeightAeolianDrift", "min": 0, "max": 10, "step": 0.1, "share": "progression" },
					{ "key": "progressionWeightAeolianDescent", "min": 0, "max": 10, "step": 0.1, "share": "progression" },
					{ "key": "progressionWeightDorianSway", "min": 0, "max": 10, "step": 0.1, "share": "progression" },
					{ "key": "progressionWeightMixolydianHorizon", "min": 0, "max": 10, "step": 0.1, "share": "progression" },
					{ "key": "progressionWeightLydianGlow", "min": 0, "max": 10, "step": 0.1, "share": "progression" },
					{ "key": "progressionWeightIonianBloom", "min": 0, "max": 10, "step": 0.1, "share": "progression" },
					{ "key": "startOnSecondChordChance", "min": 0, "max": 1, "step": 0.05 }
				]
			},
			{
				"id": "musicLayers",
				"block": "sound",
				"parameters": [
					{ "key": "spaceMusicBedLevel", "min": 0, "max": 1, "step": 0.01, "mute": true },
					{ "key": "chordPadVolume", "min": 0, "max": 1, "step": 0.01, "mute": true },
					{ "key": "softPulseVolume", "min": 0, "max": 1, "step": 0.01, "mute": true },
					{ "key": "layerPresenceNebula", "min": 0, "max": 5, "step": 0.05, "mute": true },
					{ "key": "layerPresenceGasCloud", "min": 0, "max": 5, "step": 0.05, "mute": true },
					{ "key": "layerPresenceDimensionPlane", "min": 0, "max": 5, "step": 0.05, "mute": true },
					{ "key": "layerPresencePlanet", "min": 0, "max": 5, "step": 0.05, "mute": true },
					{ "key": "layerPresenceSun", "min": 0, "max": 5, "step": 0.05, "mute": true },
					{ "key": "layerPresenceShip", "min": 0, "max": 5, "step": 0.05, "mute": true },
					{ "key": "layerPresenceFighter", "min": 0, "max": 5, "step": 0.05, "mute": true },
					{ "key": "layerPresenceBattle", "min": 0, "max": 5, "step": 0.05, "mute": true },
					{ "key": "layerPresenceSatellite", "min": 0, "max": 5, "step": 0.05, "mute": true },
					{ "key": "layerPresenceJunk", "min": 0, "max": 5, "step": 0.05, "mute": true },
					{ "key": "battleLaserChance", "min": 0, "max": 1, "step": 0.01 },
					{ "key": "battleRumbleChance", "min": 0, "max": 1, "step": 0.01 }
				]
			},
			{
				"id": "musicTiming",
				"block": "sound",
				"parameters": [
					{ "key": "spaceMusicTempoBpm", "min": 40, "max": 200, "step": 1 },
					{ "key": "chordProgressionSecondsPerChord", "min": 12, "max": 120, "step": 1 },
					{ "key": "chordChangeTimingRandomness", "min": 0, "max": 0.5, "step": 0.01 },
					{ "key": "tonicChordDurationScale", "min": 0.25, "max": 2, "step": 0.05 }
				]
			}
		]
	},
	"analytics": {
		"enableUIAnalytics": true,
		"analyticsId": "G-TKSKEEWF4G"
	}
}
