mirror of https://github.com/dirtbags/moth.git
Compare commits
3 Commits
5350cf73a0
...
1ca2ec284f
Author | SHA1 | Date |
---|---|---|
Neale Pickett | 1ca2ec284f | |
Neale Pickett | 12979a55a3 | |
Neale Pickett | 3282ad22b0 |
|
@ -4,7 +4,7 @@ stages:
|
|||
|
||||
Run unit tests:
|
||||
stage: test
|
||||
image: &goimage golang:1.18
|
||||
image: &goimage golang:1.21
|
||||
only:
|
||||
refs:
|
||||
- main
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
Dirtbags Monarch Of The Hill Server
|
||||
=====================
|
||||
|
||||
![Build badge](https://github.com/dirtbags/moth/workflows/Build/Test/Push/badge.svg)
|
||||
![Go report card](https://goreportcard.com/badge/github.com/dirtbags/moth)
|
||||
[![Go report card](https://goreportcard.com/badge/github.com/dirtbags/moth)](https://goreportcard.com/report/github.com/dirtbags/moth)
|
||||
|
||||
Monarch Of The Hill (MOTH) is a puzzle server.
|
||||
We (the authors) have used it for instructional and contest events called
|
||||
|
|
|
@ -480,7 +480,7 @@ class State {
|
|||
*
|
||||
* @yields {Scores} Snapshot at a point in time
|
||||
*/
|
||||
* ScoreHistory() {
|
||||
* ScoresHistory() {
|
||||
let scores = new Scores()
|
||||
for (let award of this.PointsLog) {
|
||||
scores.Add(award)
|
||||
|
@ -493,7 +493,7 @@ class State {
|
|||
*
|
||||
* @returns {Scores}
|
||||
*/
|
||||
CurrentScore() {
|
||||
CurrentScores() {
|
||||
let scores
|
||||
for (scores of this.ScoreHistory());
|
||||
return scores
|
||||
|
|
|
@ -43,7 +43,7 @@ async function update() {
|
|||
}
|
||||
|
||||
let frame = 0
|
||||
for (let scores of state.ScoreHistory()) {
|
||||
for (let scores of state.ScoresHistory()) {
|
||||
frame += 1
|
||||
if ((frame < state.PointsLog.length) && (frame % frameModulo)) {
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue