MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / formatMatrixCellInfo

Function formatMatrixCellInfo

codeclash/viewer/static/js/matrix.js:80–91  ·  view source on GitHub ↗
(cellData)

Source from the content-addressed store, hash-verified

78
79// Utility function to format matrix cell information
80function 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
94window.MatrixAnalysis = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected