1
0
mirror of https://github.com/osmarks/website synced 2025-08-29 16:57:56 +00:00

4D tic-tac-toe (real)

This commit is contained in:
2024-01-30 16:46:38 +00:00
parent f43a8aa951
commit b0c118bb65
40 changed files with 272 additions and 5 deletions

View File

@@ -21,7 +21,7 @@ const metricDisplayInfo = {
commentsPosted: { name: "Comments posted", units: "comment" },
greatestInfipage: { name: "Largest infipage visited" },
heavpootLocations: { name: "Heavpoot's Game states", units: "state" },
heavpootDeaths: { name: "Heavpoot's Game deaths", units: "death" }
heavpootDeaths: { name: "Heavpoot's Game deaths", units: "death" },
}
for (const opponent of ["ai1", "ai2"]) {
@@ -30,6 +30,10 @@ for (const opponent of ["ai1", "ai2"]) {
}
}
for (const result of ["Wins", "Losses", "Draws"]) {
metricDisplayInfo[`ttt4${result}`] = { name: `${result} in 4D Tic-Tac-Toe`, units: "game" }
}
const displayMetric = metric => {
let name = metric[0]
let value = metric[1]