{
  "_notes": [
    "Audits/Adjustments stored in triplicate at 0x680, 0x700, 0x780",
    "Based on freddy.map.json."
  ],
  "_fileformat": 0.7,
  "_metadata": {
    "version": 2,
    "copyright": [
      "Copyright (C) 2025 by Tom Collins <tom@scorbit.io>"
    ],
    "license": "GNU Lesser General Public License v3.0",
    "platform": "gottlieb-system3",
    "roms": [
      "cueball",
      "cueball1",
      "cueball2",
      "cueball3"
    ]
  },
  "game_state": {
    "scores": [
      {
        "label": "Player 1",
        "encoding": "bcd",
        "length": 5,
        "start": "0x001"
      },
      {
        "label": "Player 2",
        "encoding": "bcd",
        "length": 5,
        "start": "0x006"
      },
      {
        "label": "Player 3",
        "encoding": "bcd",
        "length": 5,
        "start": "0x00B"
      },
      {
        "label": "Player 4",
        "encoding": "bcd",
        "length": 5,
        "start": "0x010"
      }
    ],
    "credits": {
      "_notes": "mirrored to 0x16, 0x5B1, and 0x642 as well",
      "label": "Credits",
      "start": "0x490",
      "encoding": "bcd"
    },
    "max_credits": {
      "label": "Max Credits",
      "start": "0x6D0",
      "encoding": "bcd"
    },
    "current_ball": {
      "_notes": "set to 0 when game over",
      "label": "Ball",
      "start": "0x15",
      "encoding": "bcd"
    },
    "ball_count": {
      "label": "Ball Count",
      "start": "0x6D2",
      "encoding": "bcd"
    },
    "current_player": {
      "_notes": "0-3; bit 7 (0x80) sometimes set?",
      "label": "Current Player",
      "short_label": "P#",
      "start": "0x200",
      "encoding": "int",
      "mask": "0x0F",
      "offset": 1
    },
    "player_count": {
      "_notes": "set to 0 when game over",
      "label": "Player Count",
      "short_label": "Players",
      "start": "0x201",
      "encoding": "int"
    },
    "game_over": {
      "label": "Game Over",
      "start": "0x201",
      "encoding": "bool",
      "invert": true
    }
  },
  "high_scores": [
    {
      "label": "High Score #1",
      "short_label": "#1",
      "initials": {
        "start": "0x68C",
        "encoding": "ch",
        "length": 3
      },
      "score": {
        "encoding": "bcd",
        "length": 5,
        "start": "0x6A5"
      }
    },
    {
      "label": "High Score #2",
      "short_label": "#2",
      "initials": {
        "start": "0x691",
        "encoding": "ch",
        "length": 3
      },
      "score": {
        "encoding": "bcd",
        "length": 5,
        "start": "0x6AA"
      }
    },
    {
      "label": "High Score #3",
      "short_label": "#3",
      "initials": {
        "start": "0x696",
        "encoding": "ch",
        "length": 3
      },
      "score": {
        "encoding": "bcd",
        "length": 5,
        "start": "0x6AF"
      }
    },
    {
      "label": "High Score #4",
      "short_label": "#4",
      "initials": {
        "start": "0x69B",
        "encoding": "ch",
        "length": 3
      },
      "score": {
        "encoding": "bcd",
        "length": 5,
        "start": "0x6B4"
      }
    },
    {
      "label": "High Score #5",
      "short_label": "#5",
      "initials": {
        "start": "0x6A0",
        "encoding": "ch",
        "length": 3
      },
      "score": {
        "encoding": "bcd",
        "length": 5,
        "start": "0x6B9"
      }
    }
  ]
}
