(cellData)
| 78 | |
| 79 | // Utility function to format matrix cell information |
| 80 | function formatMatrixCellInfo(cellData) { |
| 81 | if (!cellData || !cellData.scores) { |
| 82 | return "No data available"; |
| 83 | } |
| 84 | |
| 85 | const { win_percentage, scores, total_games } = cellData; |
| 86 | const scoresText = Object.entries(scores) |
| 87 | .map(([player, score]) => `${player}: ${score}`) |
| 88 | .join(", "); |
| 89 | |
| 90 | return `Win Rate: ${win_percentage}%\nScores: ${scoresText}\nTotal Games: ${total_games}`; |
| 91 | } |
| 92 | |
| 93 | // Export functions for potential use by other modules |
| 94 | window.MatrixAnalysis = { |
nothing calls this directly
no outgoing calls
no test coverage detected