{
  "generatedBy": "tools/generate-othello-stats.mjs",
  "generatedAt": "2026-10-22",
  "method": "exact solve (negamax + alpha-beta) of every legal move, to the end of the game",
  "emptySquares": 10,
  "positions": 400,
  "movesSolved": 2617,
  "avgLegalMoves": 6.54,
  "costDefinition": "best final margin minus the margin of this move, in discs; 0 when the move was (tied) best",
  "maxFlip": {
    "available": 400,
    "bestCount": 76,
    "bestPct": 19,
    "avgCost": 13.99,
    "medianCost": 12,
    "p90Cost": 32,
    "maxCost": 60,
    "lostWin": 95,
    "lostWinPct": 23.8,
    "winnable": 231,
    "lostWinOfWinnablePct": 41.1
  },
  "minFlip": {
    "available": 400,
    "bestCount": 90,
    "bestPct": 22.5,
    "avgCost": 11.13,
    "medianCost": 8,
    "p90Cost": 26,
    "maxCost": 48,
    "lostWin": 82,
    "lostWinPct": 20.5,
    "winnable": 231,
    "lostWinOfWinnablePct": 35.5
  },
  "corner": {
    "available": 246,
    "multiple": 84,
    "bestCount": 125,
    "bestPct": 50.8,
    "avgCost": 5.11,
    "medianCost": 0,
    "p90Cost": 16,
    "maxCost": 38,
    "lostWin": 22,
    "lostWinPct": 8.9,
    "winnable": 165,
    "lostWinOfWinnablePct": 13.3
  },
  "xsquare": {
    "available": 153,
    "bestCount": 14,
    "bestPct": 9.2,
    "avgCost": 16.77,
    "medianCost": 16,
    "p90Cost": 34,
    "maxCost": 60,
    "lostWin": 48,
    "lostWinPct": 31.4,
    "winnable": 95,
    "lostWinOfWinnablePct": 50.5
  },
  "example": {
    "cornerCost": 38,
    "board": "BBBBB..WWB.B.BWWWWBWBWW.WWWWWWWBWBWWBWWBWBWWWBW..WWWWWW.WWWWW.B.",
    "turn": "black",
    "rows": [
      {
        "cell": "a2",
        "flips": 5,
        "margin": 16,
        "corner": false,
        "xsquare": false
      },
      {
        "cell": "h3",
        "flips": 3,
        "margin": -12,
        "corner": false,
        "xsquare": false
      },
      {
        "cell": "f1",
        "flips": 1,
        "margin": -22,
        "corner": false,
        "xsquare": false
      },
      {
        "cell": "h1",
        "flips": 1,
        "margin": -22,
        "corner": true,
        "xsquare": false
      },
      {
        "cell": "e7",
        "flips": 4,
        "margin": -26,
        "corner": false,
        "xsquare": false
      },
      {
        "cell": "h6",
        "flips": 2,
        "margin": -32,
        "corner": false,
        "xsquare": false
      },
      {
        "cell": "g8",
        "flips": 6,
        "margin": -38,
        "corner": false,
        "xsquare": false
      }
    ]
  }
}
