Skip to content

Commit

Permalink
update minesweeper solves data
Browse files Browse the repository at this point in the history
  • Loading branch information
cesque committed May 9, 2024
1 parent 2d675f0 commit d2955bd
Show file tree
Hide file tree
Showing 3 changed files with 1,612 additions and 52 deletions.
1 change: 0 additions & 1 deletion components/MinesweeperGraph/MinesweeperGraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export default function MinesweeperGraph() {
}

let pb = +pbs[pbs.length - 1].duration
console.log({ pb })

// ----- generate average line -----
const window = 50
Expand Down
7 changes: 4 additions & 3 deletions data/minesweeperPB.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { DateTime } from 'luxon'
let pb = Infinity
let latest = '1970-01-01'

for (let solve of solves) {
for (const solve of solves) {
if (solve.duration < pb) {
pb = solve.duration / 1000
pb = solve.duration
}

if (solve.finishedAt.localeCompare(latest) > 0) {
Expand All @@ -15,8 +15,9 @@ for (let solve of solves) {
}

const latestDate = DateTime.fromISO(latest).toISODate()
pb = pb / 1000

export {
pb,
latestDate
latestDate,
}
Loading

0 comments on commit d2955bd

Please sign in to comment.