Compare commits

..

No commits in common. "1ca2ec284fdc3b749c4c8929864d7f6e663c121c" and "5350cf73a08d5ed16db3cf7e462e868aab1012bc" have entirely different histories.

4 changed files with 6 additions and 5 deletions

View File

@ -4,7 +4,7 @@ stages:
Run unit tests: Run unit tests:
stage: test stage: test
image: &goimage golang:1.21 image: &goimage golang:1.18
only: only:
refs: refs:
- main - main

View File

@ -1,7 +1,8 @@
Dirtbags Monarch Of The Hill Server Dirtbags Monarch Of The Hill Server
===================== =====================
[![Go report card](https://goreportcard.com/badge/github.com/dirtbags/moth)](https://goreportcard.com/report/github.com/dirtbags/moth) ![Build badge](https://github.com/dirtbags/moth/workflows/Build/Test/Push/badge.svg)
![Go report card](https://goreportcard.com/badge/github.com/dirtbags/moth)
Monarch Of The Hill (MOTH) is a puzzle server. Monarch Of The Hill (MOTH) is a puzzle server.
We (the authors) have used it for instructional and contest events called We (the authors) have used it for instructional and contest events called

View File

@ -480,7 +480,7 @@ class State {
* *
* @yields {Scores} Snapshot at a point in time * @yields {Scores} Snapshot at a point in time
*/ */
* ScoresHistory() { * ScoreHistory() {
let scores = new Scores() let scores = new Scores()
for (let award of this.PointsLog) { for (let award of this.PointsLog) {
scores.Add(award) scores.Add(award)
@ -493,7 +493,7 @@ class State {
* *
* @returns {Scores} * @returns {Scores}
*/ */
CurrentScores() { CurrentScore() {
let scores let scores
for (scores of this.ScoreHistory()); for (scores of this.ScoreHistory());
return scores return scores

View File

@ -43,7 +43,7 @@ async function update() {
} }
let frame = 0 let frame = 0
for (let scores of state.ScoresHistory()) { for (let scores of state.ScoreHistory()) {
frame += 1 frame += 1
if ((frame < state.PointsLog.length) && (frame % frameModulo)) { if ((frame < state.PointsLog.length) && (frame % frameModulo)) {
continue continue