diff --git a/back/package-lock.json b/back/package-lock.json index 813ab00..cf1eb24 100644 --- a/back/package-lock.json +++ b/back/package-lock.json @@ -24,8 +24,8 @@ "@types/passport": "^1.0.12", "bcryptjs": "^2.4.3", "class-transformer": "^0.5.1", - "json-logger-service": "^9.0.1", "class-validator": "^0.14.0", + "json-logger-service": "^9.0.1", "node-fetch": "^2.6.12", "nodemailer": "^6.9.5", "passport-google-oauth20": "^2.0.0", @@ -1566,14 +1566,6 @@ "node": ">=16 || 14 >=14.17" } }, - "node_modules/@lukeed/csprng": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@lukeed/csprng/-/csprng-1.1.0.tgz", - "integrity": "sha512-Z7C/xXCiGWsg0KuKsHTKJxbWhpI3Vs5GwLfOean7MGyVFGqdRgBbAjOCh6u4bbjPc/8MJ2pZmK/0DLdCbivLDA==", - "engines": { - "node": ">=8" - } - }, "node_modules/@nestjs/cli": { "version": "10.1.10", "resolved": "https://registry.npmjs.org/@nestjs/cli/-/cli-10.1.10.tgz", @@ -3896,6 +3888,34 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/bunyan": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/bunyan/-/bunyan-2.0.5.tgz", + "integrity": "sha512-Jvl74TdxCN6rSP9W1I6+UOUtwslTDqsSFkDqZlFb/ilaSvQ+bZAnXT/GT97IZ5L+Vph0joPZPhxUyn6FLNmFAA==", + "engines": [ + "node >=0.10.0" + ], + "dependencies": { + "exeunt": "1.1.0" + }, + "bin": { + "bunyan": "bin/bunyan" + }, + "optionalDependencies": { + "dtrace-provider": "~0.8", + "moment": "^2.19.3", + "mv": "~2", + "safe-json-stringify": "~1" + } + }, + "node_modules/bunyan-prettystream": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/bunyan-prettystream/-/bunyan-prettystream-0.1.3.tgz", + "integrity": "sha512-ovZoJY65kWByTUEDu1gMB89t+NGV9Ixm7azEhp2zXiGfSTvPGlu8+HFiVp6XuEQw0P6OS0oyi/Za6gknsl8Bwg==", + "engines": [ + "node >=0.8.0" + ] + }, "node_modules/busboy": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", @@ -5303,6 +5323,19 @@ "node": ">=12" } }, + "node_modules/dtrace-provider": { + "version": "0.8.8", + "resolved": "https://registry.npmjs.org/dtrace-provider/-/dtrace-provider-0.8.8.tgz", + "integrity": "sha512-b7Z7cNtHPhH9EJhNNbbeqTcXB8LGFFZhq1PGgEvpeHlzd36bhbdTWoE/Ba/YguqpBSlAPKnARWhVlhunCMwfxg==", + "hasInstallScript": true, + "optional": true, + "dependencies": { + "nan": "^2.14.0" + }, + "engines": { + "node": ">=0.10" + } + }, "node_modules/eastasianwidth": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", @@ -8256,6 +8289,115 @@ "node": ">=4" } }, + "node_modules/json-logger-service": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/json-logger-service/-/json-logger-service-9.0.1.tgz", + "integrity": "sha512-/dHqGBGZzkO7w0QtWCibHDU9J55v1RuJ4Y2CH6mnCLPs8XfFL4qTUS1Ui68NiI6bI9Wbb5C1Qxhco937iusKKw==", + "dependencies": { + "@nestjs/common": "^9.0.0", + "@nestjs/core": "^9.0.0", + "@nestjs/platform-express": "^9.0.0", + "bunyan": "^2.0.0", + "bunyan-prettystream": "^0.1.3", + "on-finished": "^2.3.0", + "reflect-metadata": "^0.1.13", + "rxjs": "^7.1.0" + } + }, + "node_modules/json-logger-service/node_modules/@nestjs/common": { + "version": "9.4.3", + "resolved": "https://registry.npmjs.org/@nestjs/common/-/common-9.4.3.tgz", + "integrity": "sha512-Gd6D4IaYj01o14Bwv81ukidn4w3bPHCblMUq+SmUmWLyosK+XQmInCS09SbDDZyL8jy86PngtBLTdhJ2bXSUig==", + "dependencies": { + "iterare": "1.2.1", + "tslib": "2.5.3", + "uid": "2.0.2" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/nest" + }, + "peerDependencies": { + "cache-manager": "<=5", + "class-transformer": "*", + "class-validator": "*", + "reflect-metadata": "^0.1.12", + "rxjs": "^7.1.0" + }, + "peerDependenciesMeta": { + "cache-manager": { + "optional": true + }, + "class-transformer": { + "optional": true + }, + "class-validator": { + "optional": true + } + } + }, + "node_modules/json-logger-service/node_modules/@nestjs/core": { + "version": "9.4.3", + "resolved": "https://registry.npmjs.org/@nestjs/core/-/core-9.4.3.tgz", + "integrity": "sha512-Qi63+wi55Jh4sDyaj5Hhx2jOpKqT386aeo+VOKsxnd+Ql9VvkO/FjmuwBGUyzkJt29ENYc+P0Sx/k5LtstNpPQ==", + "hasInstallScript": true, + "dependencies": { + "@nuxtjs/opencollective": "0.3.2", + "fast-safe-stringify": "2.1.1", + "iterare": "1.2.1", + "path-to-regexp": "3.2.0", + "tslib": "2.5.3", + "uid": "2.0.2" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/nest" + }, + "peerDependencies": { + "@nestjs/common": "^9.0.0", + "@nestjs/microservices": "^9.0.0", + "@nestjs/platform-express": "^9.0.0", + "@nestjs/websockets": "^9.0.0", + "reflect-metadata": "^0.1.12", + "rxjs": "^7.1.0" + }, + "peerDependenciesMeta": { + "@nestjs/microservices": { + "optional": true + }, + "@nestjs/platform-express": { + "optional": true + }, + "@nestjs/websockets": { + "optional": true + } + } + }, + "node_modules/json-logger-service/node_modules/@nestjs/platform-express": { + "version": "9.4.3", + "resolved": "https://registry.npmjs.org/@nestjs/platform-express/-/platform-express-9.4.3.tgz", + "integrity": "sha512-FpdczWoRSC0zz2dNL9u2AQLXKXRVtq4HgHklAhbL59X0uy+mcxhlSThG7DHzDMkoSnuuHY8ojDVf7mDxk+GtCw==", + "dependencies": { + "body-parser": "1.20.2", + "cors": "2.8.5", + "express": "4.18.2", + "multer": "1.4.4-lts.1", + "tslib": "2.5.3" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/nest" + }, + "peerDependencies": { + "@nestjs/common": "^9.0.0", + "@nestjs/core": "^9.0.0" + } + }, + "node_modules/json-logger-service/node_modules/tslib": { + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.3.tgz", + "integrity": "sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w==" + }, "node_modules/json-parse-even-better-errors": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", @@ -9308,6 +9450,15 @@ "mkdirp": "bin/cmd.js" } }, + "node_modules/moment": { + "version": "2.29.4", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz", + "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==", + "optional": true, + "engines": { + "node": "*" + } + }, "node_modules/ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", @@ -9336,6 +9487,54 @@ "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", "dev": true }, + "node_modules/mv": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/mv/-/mv-2.1.1.tgz", + "integrity": "sha512-at/ZndSy3xEGJ8i0ygALh8ru9qy7gWW1cmkaqBN29JmMlIvM//MEO9y1sk/avxuwnPcfhkejkLsuPxH81BrkSg==", + "optional": true, + "dependencies": { + "mkdirp": "~0.5.1", + "ncp": "~2.0.0", + "rimraf": "~2.4.0" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/mv/node_modules/glob": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-6.0.4.tgz", + "integrity": "sha512-MKZeRNyYZAVVVG1oZeLaWie1uweH40m9AZwIwxyPbTSX4hHrVYSzLg0Ro5Z5R7XKkIX+Cc6oD1rqeDJnwsB8/A==", + "optional": true, + "dependencies": { + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "2 || 3", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + } + }, + "node_modules/mv/node_modules/rimraf": { + "version": "2.4.5", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.4.5.tgz", + "integrity": "sha512-J5xnxTyqaiw06JjMftq7L9ouA448dw/E7dKghkP9WpKNuwmARNNg+Gk8/u5ryb9N/Yo2+z3MCwuqFK/+qPOPfQ==", + "optional": true, + "dependencies": { + "glob": "^6.0.1" + }, + "bin": { + "rimraf": "bin.js" + } + }, + "node_modules/nan": { + "version": "2.18.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.18.0.tgz", + "integrity": "sha512-W7tfG7vMOGtD30sHoZSSc/JVYiyDPEyQVso/Zz+/uQd0B0L46gtC+pHha5FFMRpil6fm/AoEcRWyOVi4+E/f8w==", + "optional": true + }, "node_modules/natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", @@ -9348,6 +9547,15 @@ "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", "dev": true }, + "node_modules/ncp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ncp/-/ncp-2.0.0.tgz", + "integrity": "sha512-zIdGUrPRFTUELUvr3Gmc7KZ2Sw/h1PiVM0Af/oHB6zgnV1ikqSfRk+TOufi79aHYCW3NiOXmr1BP5nWbzojLaA==", + "optional": true, + "bin": { + "ncp": "bin/ncp" + } + }, "node_modules/negotiator": { "version": "0.6.3", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", @@ -11219,6 +11427,12 @@ } ] }, + "node_modules/safe-json-stringify": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/safe-json-stringify/-/safe-json-stringify-1.2.0.tgz", + "integrity": "sha512-gH8eh2nZudPQO6TytOvbxnuhYBOvDBBLW52tz5q6X58lJcd/tkmqFR+5Z9adS8aJtURSXWThWy/xJtJwixErvg==", + "optional": true + }, "node_modules/safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", @@ -14317,11 +14531,6 @@ } } }, - "@lukeed/csprng": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@lukeed/csprng/-/csprng-1.1.0.tgz", - "integrity": "sha512-Z7C/xXCiGWsg0KuKsHTKJxbWhpI3Vs5GwLfOean7MGyVFGqdRgBbAjOCh6u4bbjPc/8MJ2pZmK/0DLdCbivLDA==" - }, "@nestjs/cli": { "version": "10.1.10", "resolved": "https://registry.npmjs.org/@nestjs/cli/-/cli-10.1.10.tgz", @@ -16079,6 +16288,23 @@ "run-applescript": "^5.0.0" } }, + "bunyan": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/bunyan/-/bunyan-2.0.5.tgz", + "integrity": "sha512-Jvl74TdxCN6rSP9W1I6+UOUtwslTDqsSFkDqZlFb/ilaSvQ+bZAnXT/GT97IZ5L+Vph0joPZPhxUyn6FLNmFAA==", + "requires": { + "dtrace-provider": "~0.8", + "exeunt": "1.1.0", + "moment": "^2.19.3", + "mv": "~2", + "safe-json-stringify": "~1" + } + }, + "bunyan-prettystream": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/bunyan-prettystream/-/bunyan-prettystream-0.1.3.tgz", + "integrity": "sha512-ovZoJY65kWByTUEDu1gMB89t+NGV9Ixm7azEhp2zXiGfSTvPGlu8+HFiVp6XuEQw0P6OS0oyi/Za6gknsl8Bwg==" + }, "busboy": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", @@ -17133,11 +17359,6 @@ "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-10.0.0.tgz", "integrity": "sha512-GopVGCpVS1UKH75VKHGuQFqS1Gusej0z4FyQkPdwjil2gNIv+LNsqBlboOzpJFZKVT95GkCyWJbBSdFEFUWI2A==" }, - "eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" - }, "dtrace-provider": { "version": "0.8.8", "resolved": "https://registry.npmjs.org/dtrace-provider/-/dtrace-provider-0.8.8.tgz", @@ -17147,6 +17368,11 @@ "nan": "^2.14.0" } }, + "eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" + }, "ecdsa-sig-formatter": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", @@ -19349,6 +19575,63 @@ "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", "dev": true }, + "json-logger-service": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/json-logger-service/-/json-logger-service-9.0.1.tgz", + "integrity": "sha512-/dHqGBGZzkO7w0QtWCibHDU9J55v1RuJ4Y2CH6mnCLPs8XfFL4qTUS1Ui68NiI6bI9Wbb5C1Qxhco937iusKKw==", + "requires": { + "@nestjs/common": "^9.0.0", + "@nestjs/core": "^9.0.0", + "@nestjs/platform-express": "^9.0.0", + "bunyan": "^2.0.0", + "bunyan-prettystream": "^0.1.3", + "on-finished": "^2.3.0", + "reflect-metadata": "^0.1.13", + "rxjs": "^7.1.0" + }, + "dependencies": { + "@nestjs/common": { + "version": "9.4.3", + "resolved": "https://registry.npmjs.org/@nestjs/common/-/common-9.4.3.tgz", + "integrity": "sha512-Gd6D4IaYj01o14Bwv81ukidn4w3bPHCblMUq+SmUmWLyosK+XQmInCS09SbDDZyL8jy86PngtBLTdhJ2bXSUig==", + "requires": { + "iterare": "1.2.1", + "tslib": "2.5.3", + "uid": "2.0.2" + } + }, + "@nestjs/core": { + "version": "9.4.3", + "resolved": "https://registry.npmjs.org/@nestjs/core/-/core-9.4.3.tgz", + "integrity": "sha512-Qi63+wi55Jh4sDyaj5Hhx2jOpKqT386aeo+VOKsxnd+Ql9VvkO/FjmuwBGUyzkJt29ENYc+P0Sx/k5LtstNpPQ==", + "requires": { + "@nuxtjs/opencollective": "0.3.2", + "fast-safe-stringify": "2.1.1", + "iterare": "1.2.1", + "path-to-regexp": "3.2.0", + "tslib": "2.5.3", + "uid": "2.0.2" + } + }, + "@nestjs/platform-express": { + "version": "9.4.3", + "resolved": "https://registry.npmjs.org/@nestjs/platform-express/-/platform-express-9.4.3.tgz", + "integrity": "sha512-FpdczWoRSC0zz2dNL9u2AQLXKXRVtq4HgHklAhbL59X0uy+mcxhlSThG7DHzDMkoSnuuHY8ojDVf7mDxk+GtCw==", + "requires": { + "body-parser": "1.20.2", + "cors": "2.8.5", + "express": "4.18.2", + "multer": "1.4.4-lts.1", + "tslib": "2.5.3" + } + }, + "tslib": { + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.3.tgz", + "integrity": "sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w==" + } + } + }, "json-parse-even-better-errors": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", @@ -20334,9 +20617,9 @@ } }, "nan": { - "version": "2.17.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.17.0.tgz", - "integrity": "sha512-2ZTgtl0nJsO0KQCjEpxcIr5D+Yv90plTitZt9JBfQvVJDS5seMl3FOvsh3+9CoYWXf/1l5OaZzzF6nDm4cagaQ==", + "version": "2.18.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.18.0.tgz", + "integrity": "sha512-W7tfG7vMOGtD30sHoZSSc/JVYiyDPEyQVso/Zz+/uQd0B0L46gtC+pHha5FFMRpil6fm/AoEcRWyOVi4+E/f8w==", "optional": true }, "natural-compare": { @@ -20351,6 +20634,12 @@ "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", "dev": true }, + "ncp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ncp/-/ncp-2.0.0.tgz", + "integrity": "sha512-zIdGUrPRFTUELUvr3Gmc7KZ2Sw/h1PiVM0Af/oHB6zgnV1ikqSfRk+TOufi79aHYCW3NiOXmr1BP5nWbzojLaA==", + "optional": true + }, "negotiator": { "version": "0.6.3", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", @@ -22664,14 +22953,6 @@ "crypto-random-string": "^2.0.0" } }, - "uid": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/uid/-/uid-2.0.2.tgz", - "integrity": "sha512-u3xV3X7uzvi5b1MncmZo3i2Aw222Zk1keqLA1YkHldREkAhAqi65wuPfe7lHx8H/Wzy+8CE7S7uS3jekIM5s8g==", - "requires": { - "@lukeed/csprng": "^1.0.0" - } - }, "universalify": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", diff --git a/back/src/main.ts b/back/src/main.ts index 3621684..d52f4a6 100644 --- a/back/src/main.ts +++ b/back/src/main.ts @@ -10,8 +10,8 @@ import { } from '@nestjs/common'; import { RequestLogger, RequestLoggerOptions } from 'json-logger-service'; import { tap } from 'rxjs'; -import { ValidationPipe } from '@nestjs/common'; import { PrismaModel } from './_gen/prisma-class' +import { PrismaService } from './prisma/prisma.service'; @Injectable() export class AspectLogger implements NestInterceptor { @@ -52,8 +52,7 @@ async function bootstrap() { doNotLogPaths: ['/health'], } as RequestLoggerOptions), ); - const prismaService = app.get(PrismaService); - await prismaService.enableShutdownHooks(app); + app.enableShutdownHooks(); const config = new DocumentBuilder() .setTitle('Chromacase') diff --git a/scorometer/tests/almost_perfect_play/output b/scorometer/tests/almost_perfect_play/output index fa22062..68578fb 100644 --- a/scorometer/tests/almost_perfect_play/output +++ b/scorometer/tests/almost_perfect_play/output @@ -1,19 +1,19 @@ -{"type": "timing", "id": 2, "timing": "wrong", "info": {"max_score": 106200, "score": -25, "wrong": 1, "missed": 0, "perfect": 0, "great": 0, "good": 0, "current_streak": 0, "max_streak": 0}, "game_id": "test"} -{"type": "duration", "id": 2, "duration": "wrong", "info": {"max_score": 106200, "score": -25, "wrong": 1, "missed": 0, "perfect": 0, "great": 0, "good": 0, "current_streak": 0, "max_streak": 0}, "game_id": "test"} -{"type": "timing", "id": 3, "timing": "great", "info": {"max_score": 106200, "score": 50, "wrong": 1, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 1, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 3, "duration": "perfect", "info": {"max_score": 106200, "score": 50, "wrong": 1, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 1, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 4, "timing": "wrong", "info": {"max_score": 106200, "score": 25, "wrong": 2, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 4, "duration": "wrong", "info": {"max_score": 106200, "score": 25, "wrong": 2, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 5, "timing": "wrong", "info": {"max_score": 106200, "score": 0, "wrong": 3, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 5, "duration": "wrong", "info": {"max_score": 106200, "score": 0, "wrong": 3, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 6, "timing": "wrong", "info": {"max_score": 106200, "score": -25, "wrong": 4, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 6, "duration": "wrong", "info": {"max_score": 106200, "score": -25, "wrong": 4, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 7, "timing": "wrong", "info": {"max_score": 106200, "score": -50, "wrong": 5, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 7, "duration": "wrong", "info": {"max_score": 106200, "score": -50, "wrong": 5, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 8, "timing": "wrong", "info": {"max_score": 106200, "score": -75, "wrong": 6, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 8, "duration": "wrong", "info": {"max_score": 106200, "score": -75, "wrong": 6, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 9, "timing": "wrong", "info": {"max_score": 106200, "score": -100, "wrong": 7, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 9, "duration": "wrong", "info": {"max_score": 106200, "score": -100, "wrong": 7, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 10, "timing": "wrong", "info": {"max_score": 106200, "score": -125, "wrong": 8, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 10, "duration": "wrong", "info": {"max_score": 106200, "score": -125, "wrong": 8, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "end", "overallScore": -26650, "precision": 0.09, "score": {"max_score": 106200, "score": -26650, "wrong": 8, "missed": 1061, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}} +{"type": "timing", "id": 2, "timing": "perfect", "info": {"max_score": 1000, "score": 100, "wrong": 0, "missed": 0, "perfect": 1, "great": 0, "good": 0, "current_streak": 1, "max_streak": 1}, "game_id": "test"} +{"type": "duration", "id": 2, "duration": "perfect", "info": {"max_score": 1000, "score": 100, "wrong": 0, "missed": 0, "perfect": 1, "great": 0, "good": 0, "current_streak": 1, "max_streak": 1}, "game_id": "test"} +{"type": "timing", "id": 3, "timing": "perfect", "info": {"max_score": 1000, "score": 200, "wrong": 0, "missed": 0, "perfect": 2, "great": 0, "good": 0, "current_streak": 2, "max_streak": 2}, "game_id": "test"} +{"type": "duration", "id": 3, "duration": "perfect", "info": {"max_score": 1000, "score": 200, "wrong": 0, "missed": 0, "perfect": 2, "great": 0, "good": 0, "current_streak": 2, "max_streak": 2}, "game_id": "test"} +{"type": "timing", "id": 4, "timing": "perfect", "info": {"max_score": 1000, "score": 300, "wrong": 0, "missed": 0, "perfect": 3, "great": 0, "good": 0, "current_streak": 3, "max_streak": 3}, "game_id": "test"} +{"type": "duration", "id": 4, "duration": "perfect", "info": {"max_score": 1000, "score": 300, "wrong": 0, "missed": 0, "perfect": 3, "great": 0, "good": 0, "current_streak": 3, "max_streak": 3}, "game_id": "test"} +{"type": "timing", "id": 5, "timing": "perfect", "info": {"max_score": 1000, "score": 400, "wrong": 0, "missed": 0, "perfect": 4, "great": 0, "good": 0, "current_streak": 4, "max_streak": 4}, "game_id": "test"} +{"type": "duration", "id": 5, "duration": "perfect", "info": {"max_score": 1000, "score": 400, "wrong": 0, "missed": 0, "perfect": 4, "great": 0, "good": 0, "current_streak": 4, "max_streak": 4}, "game_id": "test"} +{"type": "timing", "id": 6, "timing": "perfect", "info": {"max_score": 1000, "score": 500, "wrong": 0, "missed": 0, "perfect": 5, "great": 0, "good": 0, "current_streak": 5, "max_streak": 5}, "game_id": "test"} +{"type": "duration", "id": 6, "duration": "perfect", "info": {"max_score": 1000, "score": 500, "wrong": 0, "missed": 0, "perfect": 5, "great": 0, "good": 0, "current_streak": 5, "max_streak": 5}, "game_id": "test"} +{"type": "timing", "id": 7, "timing": "perfect", "info": {"max_score": 1000, "score": 600, "wrong": 0, "missed": 0, "perfect": 6, "great": 0, "good": 0, "current_streak": 6, "max_streak": 6}, "game_id": "test"} +{"type": "duration", "id": 7, "duration": "perfect", "info": {"max_score": 1000, "score": 600, "wrong": 0, "missed": 0, "perfect": 6, "great": 0, "good": 0, "current_streak": 6, "max_streak": 6}, "game_id": "test"} +{"type": "timing", "id": 8, "timing": "perfect", "info": {"max_score": 1000, "score": 700, "wrong": 0, "missed": 0, "perfect": 7, "great": 0, "good": 0, "current_streak": 7, "max_streak": 7}, "game_id": "test"} +{"type": "duration", "id": 8, "duration": "perfect", "info": {"max_score": 1000, "score": 700, "wrong": 0, "missed": 0, "perfect": 7, "great": 0, "good": 0, "current_streak": 7, "max_streak": 7}, "game_id": "test"} +{"type": "timing", "id": 9, "timing": "perfect", "info": {"max_score": 1000, "score": 800, "wrong": 0, "missed": 0, "perfect": 8, "great": 0, "good": 0, "current_streak": 8, "max_streak": 8}, "game_id": "test"} +{"type": "duration", "id": 9, "duration": "perfect", "info": {"max_score": 1000, "score": 800, "wrong": 0, "missed": 0, "perfect": 8, "great": 0, "good": 0, "current_streak": 8, "max_streak": 8}, "game_id": "test"} +{"type": "timing", "id": 10, "timing": "perfect", "info": {"max_score": 1000, "score": 900, "wrong": 0, "missed": 0, "perfect": 9, "great": 0, "good": 0, "current_streak": 9, "max_streak": 9}, "game_id": "test"} +{"type": "duration", "id": 10, "duration": "perfect", "info": {"max_score": 1000, "score": 900, "wrong": 0, "missed": 0, "perfect": 9, "great": 0, "good": 0, "current_streak": 9, "max_streak": 9}, "game_id": "test"} +{"type": "end", "overallScore": 875, "precision": 90.0, "score": {"max_score": 1000, "score": 875, "wrong": 0, "missed": 1, "perfect": 9, "great": 0, "good": 0, "current_streak": 9, "max_streak": 9}} diff --git a/scorometer/tests/early/output b/scorometer/tests/early/output index 6132ebc..1cd5ea2 100644 --- a/scorometer/tests/early/output +++ b/scorometer/tests/early/output @@ -1,21 +1,21 @@ -{"type": "timing", "id": 1, "timing": "wrong", "info": {"max_score": 106200, "score": -25, "wrong": 1, "missed": 0, "perfect": 0, "great": 0, "good": 0, "current_streak": 0, "max_streak": 0}, "game_id": "test"} -{"type": "duration", "id": 1, "duration": "wrong", "info": {"max_score": 106200, "score": -25, "wrong": 1, "missed": 0, "perfect": 0, "great": 0, "good": 0, "current_streak": 0, "max_streak": 0}, "game_id": "test"} -{"type": "timing", "id": 2, "timing": "wrong", "info": {"max_score": 106200, "score": -50, "wrong": 2, "missed": 0, "perfect": 0, "great": 0, "good": 0, "current_streak": 0, "max_streak": 0}, "game_id": "test"} -{"type": "duration", "id": 2, "duration": "wrong", "info": {"max_score": 106200, "score": -50, "wrong": 2, "missed": 0, "perfect": 0, "great": 0, "good": 0, "current_streak": 0, "max_streak": 0}, "game_id": "test"} -{"type": "timing", "id": 3, "timing": "great", "info": {"max_score": 106200, "score": 25, "wrong": 2, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 1, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 3, "duration": "perfect", "info": {"max_score": 106200, "score": 25, "wrong": 2, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 1, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 4, "timing": "wrong", "info": {"max_score": 106200, "score": 0, "wrong": 3, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 4, "duration": "wrong", "info": {"max_score": 106200, "score": 0, "wrong": 3, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 5, "timing": "wrong", "info": {"max_score": 106200, "score": -25, "wrong": 4, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 5, "duration": "wrong", "info": {"max_score": 106200, "score": -25, "wrong": 4, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 6, "timing": "wrong", "info": {"max_score": 106200, "score": -50, "wrong": 5, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 6, "duration": "wrong", "info": {"max_score": 106200, "score": -50, "wrong": 5, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 7, "timing": "wrong", "info": {"max_score": 106200, "score": -75, "wrong": 6, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 7, "duration": "wrong", "info": {"max_score": 106200, "score": -75, "wrong": 6, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 8, "timing": "wrong", "info": {"max_score": 106200, "score": -100, "wrong": 7, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 8, "duration": "wrong", "info": {"max_score": 106200, "score": -100, "wrong": 7, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 9, "timing": "wrong", "info": {"max_score": 106200, "score": -125, "wrong": 8, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 9, "duration": "wrong", "info": {"max_score": 106200, "score": -125, "wrong": 8, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 10, "timing": "wrong", "info": {"max_score": 106200, "score": -150, "wrong": 9, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 10, "duration": "wrong", "info": {"max_score": 106200, "score": -150, "wrong": 9, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "end", "overallScore": -26675, "precision": 0.09, "score": {"max_score": 106200, "score": -26675, "wrong": 9, "missed": 1061, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}} +{"type": "timing", "id": 1, "timing": "great", "info": {"max_score": 1000, "score": 75, "wrong": 0, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 1, "max_streak": 1}, "game_id": "test"} +{"type": "duration", "id": 1, "duration": "perfect", "info": {"max_score": 1000, "score": 75, "wrong": 0, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 1, "max_streak": 1}, "game_id": "test"} +{"type": "timing", "id": 2, "timing": "great", "info": {"max_score": 1000, "score": 150, "wrong": 0, "missed": 0, "perfect": 0, "great": 2, "good": 0, "current_streak": 2, "max_streak": 2}, "game_id": "test"} +{"type": "duration", "id": 2, "duration": "perfect", "info": {"max_score": 1000, "score": 150, "wrong": 0, "missed": 0, "perfect": 0, "great": 2, "good": 0, "current_streak": 2, "max_streak": 2}, "game_id": "test"} +{"type": "timing", "id": 3, "timing": "great", "info": {"max_score": 1000, "score": 225, "wrong": 0, "missed": 0, "perfect": 0, "great": 3, "good": 0, "current_streak": 3, "max_streak": 3}, "game_id": "test"} +{"type": "duration", "id": 3, "duration": "perfect", "info": {"max_score": 1000, "score": 225, "wrong": 0, "missed": 0, "perfect": 0, "great": 3, "good": 0, "current_streak": 3, "max_streak": 3}, "game_id": "test"} +{"type": "timing", "id": 4, "timing": "great", "info": {"max_score": 1000, "score": 300, "wrong": 0, "missed": 0, "perfect": 0, "great": 4, "good": 0, "current_streak": 4, "max_streak": 4}, "game_id": "test"} +{"type": "duration", "id": 4, "duration": "perfect", "info": {"max_score": 1000, "score": 300, "wrong": 0, "missed": 0, "perfect": 0, "great": 4, "good": 0, "current_streak": 4, "max_streak": 4}, "game_id": "test"} +{"type": "timing", "id": 5, "timing": "great", "info": {"max_score": 1000, "score": 375, "wrong": 0, "missed": 0, "perfect": 0, "great": 5, "good": 0, "current_streak": 5, "max_streak": 5}, "game_id": "test"} +{"type": "duration", "id": 5, "duration": "perfect", "info": {"max_score": 1000, "score": 375, "wrong": 0, "missed": 0, "perfect": 0, "great": 5, "good": 0, "current_streak": 5, "max_streak": 5}, "game_id": "test"} +{"type": "timing", "id": 6, "timing": "great", "info": {"max_score": 1000, "score": 450, "wrong": 0, "missed": 0, "perfect": 0, "great": 6, "good": 0, "current_streak": 6, "max_streak": 6}, "game_id": "test"} +{"type": "duration", "id": 6, "duration": "perfect", "info": {"max_score": 1000, "score": 450, "wrong": 0, "missed": 0, "perfect": 0, "great": 6, "good": 0, "current_streak": 6, "max_streak": 6}, "game_id": "test"} +{"type": "timing", "id": 7, "timing": "great", "info": {"max_score": 1000, "score": 525, "wrong": 0, "missed": 0, "perfect": 0, "great": 7, "good": 0, "current_streak": 7, "max_streak": 7}, "game_id": "test"} +{"type": "duration", "id": 7, "duration": "perfect", "info": {"max_score": 1000, "score": 525, "wrong": 0, "missed": 0, "perfect": 0, "great": 7, "good": 0, "current_streak": 7, "max_streak": 7}, "game_id": "test"} +{"type": "timing", "id": 8, "timing": "great", "info": {"max_score": 1000, "score": 600, "wrong": 0, "missed": 0, "perfect": 0, "great": 8, "good": 0, "current_streak": 8, "max_streak": 8}, "game_id": "test"} +{"type": "duration", "id": 8, "duration": "perfect", "info": {"max_score": 1000, "score": 600, "wrong": 0, "missed": 0, "perfect": 0, "great": 8, "good": 0, "current_streak": 8, "max_streak": 8}, "game_id": "test"} +{"type": "timing", "id": 9, "timing": "great", "info": {"max_score": 1000, "score": 675, "wrong": 0, "missed": 0, "perfect": 0, "great": 9, "good": 0, "current_streak": 9, "max_streak": 9}, "game_id": "test"} +{"type": "duration", "id": 9, "duration": "perfect", "info": {"max_score": 1000, "score": 675, "wrong": 0, "missed": 0, "perfect": 0, "great": 9, "good": 0, "current_streak": 9, "max_streak": 9}, "game_id": "test"} +{"type": "timing", "id": 10, "timing": "great", "info": {"max_score": 1000, "score": 750, "wrong": 0, "missed": 0, "perfect": 0, "great": 10, "good": 0, "current_streak": 10, "max_streak": 10}, "game_id": "test"} +{"type": "duration", "id": 10, "duration": "perfect", "info": {"max_score": 1000, "score": 750, "wrong": 0, "missed": 0, "perfect": 0, "great": 10, "good": 0, "current_streak": 10, "max_streak": 10}, "game_id": "test"} +{"type": "end", "overallScore": 750, "precision": 100.0, "score": {"max_score": 1000, "score": 750, "wrong": 0, "missed": 0, "perfect": 0, "great": 10, "good": 0, "current_streak": 10, "max_streak": 10}} diff --git a/scorometer/tests/end_miss/output b/scorometer/tests/end_miss/output index dfce1ec..73a2177 100644 --- a/scorometer/tests/end_miss/output +++ b/scorometer/tests/end_miss/output @@ -1,17 +1,17 @@ -{"type": "timing", "id": 1, "timing": "wrong", "info": {"max_score": 106200, "score": -25, "wrong": 1, "missed": 0, "perfect": 0, "great": 0, "good": 0, "current_streak": 0, "max_streak": 0}, "game_id": "test"} -{"type": "duration", "id": 1, "duration": "wrong", "info": {"max_score": 106200, "score": -25, "wrong": 1, "missed": 0, "perfect": 0, "great": 0, "good": 0, "current_streak": 0, "max_streak": 0}, "game_id": "test"} -{"type": "timing", "id": 2, "timing": "wrong", "info": {"max_score": 106200, "score": -50, "wrong": 2, "missed": 0, "perfect": 0, "great": 0, "good": 0, "current_streak": 0, "max_streak": 0}, "game_id": "test"} -{"type": "duration", "id": 2, "duration": "wrong", "info": {"max_score": 106200, "score": -50, "wrong": 2, "missed": 0, "perfect": 0, "great": 0, "good": 0, "current_streak": 0, "max_streak": 0}, "game_id": "test"} -{"type": "timing", "id": 3, "timing": "great", "info": {"max_score": 106200, "score": 25, "wrong": 2, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 1, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 3, "duration": "perfect", "info": {"max_score": 106200, "score": 25, "wrong": 2, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 1, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 4, "timing": "wrong", "info": {"max_score": 106200, "score": 0, "wrong": 3, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 4, "duration": "wrong", "info": {"max_score": 106200, "score": 0, "wrong": 3, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 5, "timing": "wrong", "info": {"max_score": 106200, "score": -25, "wrong": 4, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 5, "duration": "wrong", "info": {"max_score": 106200, "score": -25, "wrong": 4, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 6, "timing": "wrong", "info": {"max_score": 106200, "score": -50, "wrong": 5, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 6, "duration": "wrong", "info": {"max_score": 106200, "score": -50, "wrong": 5, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 7, "timing": "wrong", "info": {"max_score": 106200, "score": -75, "wrong": 6, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 7, "duration": "wrong", "info": {"max_score": 106200, "score": -75, "wrong": 6, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 8, "timing": "wrong", "info": {"max_score": 106200, "score": -100, "wrong": 7, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 8, "duration": "wrong", "info": {"max_score": 106200, "score": -100, "wrong": 7, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "end", "overallScore": -26625, "precision": 0.09, "score": {"max_score": 106200, "score": -26625, "wrong": 7, "missed": 1061, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}} +{"type": "timing", "id": 1, "timing": "perfect", "info": {"max_score": 1000, "score": 100, "wrong": 0, "missed": 0, "perfect": 1, "great": 0, "good": 0, "current_streak": 1, "max_streak": 1}, "game_id": "test"} +{"type": "duration", "id": 1, "duration": "perfect", "info": {"max_score": 1000, "score": 100, "wrong": 0, "missed": 0, "perfect": 1, "great": 0, "good": 0, "current_streak": 1, "max_streak": 1}, "game_id": "test"} +{"type": "timing", "id": 2, "timing": "perfect", "info": {"max_score": 1000, "score": 200, "wrong": 0, "missed": 0, "perfect": 2, "great": 0, "good": 0, "current_streak": 2, "max_streak": 2}, "game_id": "test"} +{"type": "duration", "id": 2, "duration": "perfect", "info": {"max_score": 1000, "score": 200, "wrong": 0, "missed": 0, "perfect": 2, "great": 0, "good": 0, "current_streak": 2, "max_streak": 2}, "game_id": "test"} +{"type": "timing", "id": 3, "timing": "perfect", "info": {"max_score": 1000, "score": 300, "wrong": 0, "missed": 0, "perfect": 3, "great": 0, "good": 0, "current_streak": 3, "max_streak": 3}, "game_id": "test"} +{"type": "duration", "id": 3, "duration": "perfect", "info": {"max_score": 1000, "score": 300, "wrong": 0, "missed": 0, "perfect": 3, "great": 0, "good": 0, "current_streak": 3, "max_streak": 3}, "game_id": "test"} +{"type": "timing", "id": 4, "timing": "perfect", "info": {"max_score": 1000, "score": 400, "wrong": 0, "missed": 0, "perfect": 4, "great": 0, "good": 0, "current_streak": 4, "max_streak": 4}, "game_id": "test"} +{"type": "duration", "id": 4, "duration": "perfect", "info": {"max_score": 1000, "score": 400, "wrong": 0, "missed": 0, "perfect": 4, "great": 0, "good": 0, "current_streak": 4, "max_streak": 4}, "game_id": "test"} +{"type": "timing", "id": 5, "timing": "perfect", "info": {"max_score": 1000, "score": 500, "wrong": 0, "missed": 0, "perfect": 5, "great": 0, "good": 0, "current_streak": 5, "max_streak": 5}, "game_id": "test"} +{"type": "duration", "id": 5, "duration": "perfect", "info": {"max_score": 1000, "score": 500, "wrong": 0, "missed": 0, "perfect": 5, "great": 0, "good": 0, "current_streak": 5, "max_streak": 5}, "game_id": "test"} +{"type": "timing", "id": 6, "timing": "perfect", "info": {"max_score": 1000, "score": 600, "wrong": 0, "missed": 0, "perfect": 6, "great": 0, "good": 0, "current_streak": 6, "max_streak": 6}, "game_id": "test"} +{"type": "duration", "id": 6, "duration": "perfect", "info": {"max_score": 1000, "score": 600, "wrong": 0, "missed": 0, "perfect": 6, "great": 0, "good": 0, "current_streak": 6, "max_streak": 6}, "game_id": "test"} +{"type": "timing", "id": 7, "timing": "perfect", "info": {"max_score": 1000, "score": 700, "wrong": 0, "missed": 0, "perfect": 7, "great": 0, "good": 0, "current_streak": 7, "max_streak": 7}, "game_id": "test"} +{"type": "duration", "id": 7, "duration": "perfect", "info": {"max_score": 1000, "score": 700, "wrong": 0, "missed": 0, "perfect": 7, "great": 0, "good": 0, "current_streak": 7, "max_streak": 7}, "game_id": "test"} +{"type": "timing", "id": 8, "timing": "perfect", "info": {"max_score": 1000, "score": 800, "wrong": 0, "missed": 0, "perfect": 8, "great": 0, "good": 0, "current_streak": 8, "max_streak": 8}, "game_id": "test"} +{"type": "duration", "id": 8, "duration": "perfect", "info": {"max_score": 1000, "score": 800, "wrong": 0, "missed": 0, "perfect": 8, "great": 0, "good": 0, "current_streak": 8, "max_streak": 8}, "game_id": "test"} +{"type": "end", "overallScore": 750, "precision": 80.0, "score": {"max_score": 1000, "score": 750, "wrong": 0, "missed": 2, "perfect": 8, "great": 0, "good": 0, "current_streak": 8, "max_streak": 8}} diff --git a/scorometer/tests/hold_not_enough/output b/scorometer/tests/hold_not_enough/output index 43c224d..cb61f21 100644 --- a/scorometer/tests/hold_not_enough/output +++ b/scorometer/tests/hold_not_enough/output @@ -1,21 +1,21 @@ -{"type": "timing", "id": 1, "timing": "wrong", "info": {"max_score": 106200, "score": -25, "wrong": 1, "missed": 0, "perfect": 0, "great": 0, "good": 0, "current_streak": 0, "max_streak": 0}, "game_id": "test"} -{"type": "duration", "id": 1, "duration": "wrong", "info": {"max_score": 106200, "score": -25, "wrong": 1, "missed": 0, "perfect": 0, "great": 0, "good": 0, "current_streak": 0, "max_streak": 0}, "game_id": "test"} -{"type": "timing", "id": 2, "timing": "wrong", "info": {"max_score": 106200, "score": -50, "wrong": 2, "missed": 0, "perfect": 0, "great": 0, "good": 0, "current_streak": 0, "max_streak": 0}, "game_id": "test"} -{"type": "duration", "id": 2, "duration": "wrong", "info": {"max_score": 106200, "score": -50, "wrong": 2, "missed": 0, "perfect": 0, "great": 0, "good": 0, "current_streak": 0, "max_streak": 0}, "game_id": "test"} -{"type": "timing", "id": 3, "timing": "great", "info": {"max_score": 106200, "score": 25, "wrong": 2, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 1, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 3, "duration": "too short", "info": {"max_score": 106200, "score": 25, "wrong": 2, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 1, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 4, "timing": "wrong", "info": {"max_score": 106200, "score": 0, "wrong": 3, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 4, "duration": "wrong", "info": {"max_score": 106200, "score": 0, "wrong": 3, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 5, "timing": "wrong", "info": {"max_score": 106200, "score": -25, "wrong": 4, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 5, "duration": "wrong", "info": {"max_score": 106200, "score": -25, "wrong": 4, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 6, "timing": "wrong", "info": {"max_score": 106200, "score": -50, "wrong": 5, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 6, "duration": "wrong", "info": {"max_score": 106200, "score": -50, "wrong": 5, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 7, "timing": "wrong", "info": {"max_score": 106200, "score": -75, "wrong": 6, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 7, "duration": "wrong", "info": {"max_score": 106200, "score": -75, "wrong": 6, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 8, "timing": "wrong", "info": {"max_score": 106200, "score": -100, "wrong": 7, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 8, "duration": "wrong", "info": {"max_score": 106200, "score": -100, "wrong": 7, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 9, "timing": "wrong", "info": {"max_score": 106200, "score": -125, "wrong": 8, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 9, "duration": "wrong", "info": {"max_score": 106200, "score": -125, "wrong": 8, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 10, "timing": "wrong", "info": {"max_score": 106200, "score": -150, "wrong": 9, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 10, "duration": "wrong", "info": {"max_score": 106200, "score": -150, "wrong": 9, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "end", "overallScore": -26675, "precision": 0.09, "score": {"max_score": 106200, "score": -26675, "wrong": 9, "missed": 1061, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}} +{"type": "timing", "id": 1, "timing": "perfect", "info": {"max_score": 1000, "score": 100, "wrong": 0, "missed": 0, "perfect": 1, "great": 0, "good": 0, "current_streak": 1, "max_streak": 1}, "game_id": "test"} +{"type": "duration", "id": 1, "duration": "too short", "info": {"max_score": 1000, "score": 100, "wrong": 0, "missed": 0, "perfect": 1, "great": 0, "good": 0, "current_streak": 1, "max_streak": 1}, "game_id": "test"} +{"type": "timing", "id": 2, "timing": "perfect", "info": {"max_score": 1000, "score": 200, "wrong": 0, "missed": 0, "perfect": 2, "great": 0, "good": 0, "current_streak": 2, "max_streak": 2}, "game_id": "test"} +{"type": "duration", "id": 2, "duration": "too short", "info": {"max_score": 1000, "score": 200, "wrong": 0, "missed": 0, "perfect": 2, "great": 0, "good": 0, "current_streak": 2, "max_streak": 2}, "game_id": "test"} +{"type": "timing", "id": 3, "timing": "perfect", "info": {"max_score": 1000, "score": 300, "wrong": 0, "missed": 0, "perfect": 3, "great": 0, "good": 0, "current_streak": 3, "max_streak": 3}, "game_id": "test"} +{"type": "duration", "id": 3, "duration": "too short", "info": {"max_score": 1000, "score": 300, "wrong": 0, "missed": 0, "perfect": 3, "great": 0, "good": 0, "current_streak": 3, "max_streak": 3}, "game_id": "test"} +{"type": "timing", "id": 4, "timing": "perfect", "info": {"max_score": 1000, "score": 400, "wrong": 0, "missed": 0, "perfect": 4, "great": 0, "good": 0, "current_streak": 4, "max_streak": 4}, "game_id": "test"} +{"type": "duration", "id": 4, "duration": "too short", "info": {"max_score": 1000, "score": 400, "wrong": 0, "missed": 0, "perfect": 4, "great": 0, "good": 0, "current_streak": 4, "max_streak": 4}, "game_id": "test"} +{"type": "timing", "id": 5, "timing": "perfect", "info": {"max_score": 1000, "score": 500, "wrong": 0, "missed": 0, "perfect": 5, "great": 0, "good": 0, "current_streak": 5, "max_streak": 5}, "game_id": "test"} +{"type": "duration", "id": 5, "duration": "too short", "info": {"max_score": 1000, "score": 500, "wrong": 0, "missed": 0, "perfect": 5, "great": 0, "good": 0, "current_streak": 5, "max_streak": 5}, "game_id": "test"} +{"type": "timing", "id": 6, "timing": "perfect", "info": {"max_score": 1000, "score": 600, "wrong": 0, "missed": 0, "perfect": 6, "great": 0, "good": 0, "current_streak": 6, "max_streak": 6}, "game_id": "test"} +{"type": "duration", "id": 6, "duration": "too short", "info": {"max_score": 1000, "score": 600, "wrong": 0, "missed": 0, "perfect": 6, "great": 0, "good": 0, "current_streak": 6, "max_streak": 6}, "game_id": "test"} +{"type": "timing", "id": 7, "timing": "perfect", "info": {"max_score": 1000, "score": 700, "wrong": 0, "missed": 0, "perfect": 7, "great": 0, "good": 0, "current_streak": 7, "max_streak": 7}, "game_id": "test"} +{"type": "duration", "id": 7, "duration": "too short", "info": {"max_score": 1000, "score": 700, "wrong": 0, "missed": 0, "perfect": 7, "great": 0, "good": 0, "current_streak": 7, "max_streak": 7}, "game_id": "test"} +{"type": "timing", "id": 8, "timing": "perfect", "info": {"max_score": 1000, "score": 800, "wrong": 0, "missed": 0, "perfect": 8, "great": 0, "good": 0, "current_streak": 8, "max_streak": 8}, "game_id": "test"} +{"type": "duration", "id": 8, "duration": "too short", "info": {"max_score": 1000, "score": 800, "wrong": 0, "missed": 0, "perfect": 8, "great": 0, "good": 0, "current_streak": 8, "max_streak": 8}, "game_id": "test"} +{"type": "timing", "id": 9, "timing": "perfect", "info": {"max_score": 1000, "score": 900, "wrong": 0, "missed": 0, "perfect": 9, "great": 0, "good": 0, "current_streak": 9, "max_streak": 9}, "game_id": "test"} +{"type": "duration", "id": 9, "duration": "too short", "info": {"max_score": 1000, "score": 900, "wrong": 0, "missed": 0, "perfect": 9, "great": 0, "good": 0, "current_streak": 9, "max_streak": 9}, "game_id": "test"} +{"type": "timing", "id": 10, "timing": "perfect", "info": {"max_score": 1000, "score": 1000, "wrong": 0, "missed": 0, "perfect": 10, "great": 0, "good": 0, "current_streak": 10, "max_streak": 10}, "game_id": "test"} +{"type": "duration", "id": 10, "duration": "too short", "info": {"max_score": 1000, "score": 1000, "wrong": 0, "missed": 0, "perfect": 10, "great": 0, "good": 0, "current_streak": 10, "max_streak": 10}, "game_id": "test"} +{"type": "end", "overallScore": 1000, "precision": 100.0, "score": {"max_score": 1000, "score": 1000, "wrong": 0, "missed": 0, "perfect": 10, "great": 0, "good": 0, "current_streak": 10, "max_streak": 10}} diff --git a/scorometer/tests/hold_too_long/output b/scorometer/tests/hold_too_long/output index a5433e8..f3ee3de 100644 --- a/scorometer/tests/hold_too_long/output +++ b/scorometer/tests/hold_too_long/output @@ -1,21 +1,21 @@ -{"type": "timing", "id": 1, "timing": "wrong", "info": {"max_score": 106200, "score": -25, "wrong": 1, "missed": 0, "perfect": 0, "great": 0, "good": 0, "current_streak": 0, "max_streak": 0}, "game_id": "test"} -{"type": "duration", "id": 1, "duration": "wrong", "info": {"max_score": 106200, "score": -25, "wrong": 1, "missed": 0, "perfect": 0, "great": 0, "good": 0, "current_streak": 0, "max_streak": 0}, "game_id": "test"} -{"type": "timing", "id": 2, "timing": "wrong", "info": {"max_score": 106200, "score": -50, "wrong": 2, "missed": 0, "perfect": 0, "great": 0, "good": 0, "current_streak": 0, "max_streak": 0}, "game_id": "test"} -{"type": "duration", "id": 2, "duration": "wrong", "info": {"max_score": 106200, "score": -50, "wrong": 2, "missed": 0, "perfect": 0, "great": 0, "good": 0, "current_streak": 0, "max_streak": 0}, "game_id": "test"} -{"type": "timing", "id": 3, "timing": "great", "info": {"max_score": 106200, "score": 25, "wrong": 2, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 1, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 3, "duration": "long", "info": {"max_score": 106200, "score": 25, "wrong": 2, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 1, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 4, "timing": "wrong", "info": {"max_score": 106200, "score": 0, "wrong": 3, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 4, "duration": "wrong", "info": {"max_score": 106200, "score": 0, "wrong": 3, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 5, "timing": "wrong", "info": {"max_score": 106200, "score": -25, "wrong": 4, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 5, "duration": "wrong", "info": {"max_score": 106200, "score": -25, "wrong": 4, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 6, "timing": "wrong", "info": {"max_score": 106200, "score": -50, "wrong": 5, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 6, "duration": "wrong", "info": {"max_score": 106200, "score": -50, "wrong": 5, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 7, "timing": "wrong", "info": {"max_score": 106200, "score": -75, "wrong": 6, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 7, "duration": "wrong", "info": {"max_score": 106200, "score": -75, "wrong": 6, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 8, "timing": "wrong", "info": {"max_score": 106200, "score": -100, "wrong": 7, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 8, "duration": "wrong", "info": {"max_score": 106200, "score": -100, "wrong": 7, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 9, "timing": "wrong", "info": {"max_score": 106200, "score": -125, "wrong": 8, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 9, "duration": "wrong", "info": {"max_score": 106200, "score": -125, "wrong": 8, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 10, "timing": "wrong", "info": {"max_score": 106200, "score": -150, "wrong": 9, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 10, "duration": "wrong", "info": {"max_score": 106200, "score": -150, "wrong": 9, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "end", "overallScore": -26675, "precision": 0.09, "score": {"max_score": 106200, "score": -26675, "wrong": 9, "missed": 1061, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}} +{"type": "timing", "id": 1, "timing": "perfect", "info": {"max_score": 1000, "score": 100, "wrong": 0, "missed": 0, "perfect": 1, "great": 0, "good": 0, "current_streak": 1, "max_streak": 1}, "game_id": "test"} +{"type": "duration", "id": 1, "duration": "too long", "info": {"max_score": 1000, "score": 100, "wrong": 0, "missed": 0, "perfect": 1, "great": 0, "good": 0, "current_streak": 1, "max_streak": 1}, "game_id": "test"} +{"type": "timing", "id": 2, "timing": "perfect", "info": {"max_score": 1000, "score": 200, "wrong": 0, "missed": 0, "perfect": 2, "great": 0, "good": 0, "current_streak": 2, "max_streak": 2}, "game_id": "test"} +{"type": "duration", "id": 2, "duration": "too long", "info": {"max_score": 1000, "score": 200, "wrong": 0, "missed": 0, "perfect": 2, "great": 0, "good": 0, "current_streak": 2, "max_streak": 2}, "game_id": "test"} +{"type": "timing", "id": 3, "timing": "perfect", "info": {"max_score": 1000, "score": 300, "wrong": 0, "missed": 0, "perfect": 3, "great": 0, "good": 0, "current_streak": 3, "max_streak": 3}, "game_id": "test"} +{"type": "duration", "id": 3, "duration": "too long", "info": {"max_score": 1000, "score": 300, "wrong": 0, "missed": 0, "perfect": 3, "great": 0, "good": 0, "current_streak": 3, "max_streak": 3}, "game_id": "test"} +{"type": "timing", "id": 4, "timing": "perfect", "info": {"max_score": 1000, "score": 400, "wrong": 0, "missed": 0, "perfect": 4, "great": 0, "good": 0, "current_streak": 4, "max_streak": 4}, "game_id": "test"} +{"type": "duration", "id": 4, "duration": "too long", "info": {"max_score": 1000, "score": 400, "wrong": 0, "missed": 0, "perfect": 4, "great": 0, "good": 0, "current_streak": 4, "max_streak": 4}, "game_id": "test"} +{"type": "timing", "id": 5, "timing": "perfect", "info": {"max_score": 1000, "score": 500, "wrong": 0, "missed": 0, "perfect": 5, "great": 0, "good": 0, "current_streak": 5, "max_streak": 5}, "game_id": "test"} +{"type": "duration", "id": 5, "duration": "too long", "info": {"max_score": 1000, "score": 500, "wrong": 0, "missed": 0, "perfect": 5, "great": 0, "good": 0, "current_streak": 5, "max_streak": 5}, "game_id": "test"} +{"type": "timing", "id": 6, "timing": "perfect", "info": {"max_score": 1000, "score": 600, "wrong": 0, "missed": 0, "perfect": 6, "great": 0, "good": 0, "current_streak": 6, "max_streak": 6}, "game_id": "test"} +{"type": "duration", "id": 6, "duration": "too long", "info": {"max_score": 1000, "score": 600, "wrong": 0, "missed": 0, "perfect": 6, "great": 0, "good": 0, "current_streak": 6, "max_streak": 6}, "game_id": "test"} +{"type": "timing", "id": 7, "timing": "perfect", "info": {"max_score": 1000, "score": 700, "wrong": 0, "missed": 0, "perfect": 7, "great": 0, "good": 0, "current_streak": 7, "max_streak": 7}, "game_id": "test"} +{"type": "duration", "id": 7, "duration": "too long", "info": {"max_score": 1000, "score": 700, "wrong": 0, "missed": 0, "perfect": 7, "great": 0, "good": 0, "current_streak": 7, "max_streak": 7}, "game_id": "test"} +{"type": "timing", "id": 8, "timing": "perfect", "info": {"max_score": 1000, "score": 800, "wrong": 0, "missed": 0, "perfect": 8, "great": 0, "good": 0, "current_streak": 8, "max_streak": 8}, "game_id": "test"} +{"type": "duration", "id": 8, "duration": "too long", "info": {"max_score": 1000, "score": 800, "wrong": 0, "missed": 0, "perfect": 8, "great": 0, "good": 0, "current_streak": 8, "max_streak": 8}, "game_id": "test"} +{"type": "timing", "id": 9, "timing": "perfect", "info": {"max_score": 1000, "score": 900, "wrong": 0, "missed": 0, "perfect": 9, "great": 0, "good": 0, "current_streak": 9, "max_streak": 9}, "game_id": "test"} +{"type": "duration", "id": 9, "duration": "too long", "info": {"max_score": 1000, "score": 900, "wrong": 0, "missed": 0, "perfect": 9, "great": 0, "good": 0, "current_streak": 9, "max_streak": 9}, "game_id": "test"} +{"type": "timing", "id": 10, "timing": "perfect", "info": {"max_score": 1000, "score": 1000, "wrong": 0, "missed": 0, "perfect": 10, "great": 0, "good": 0, "current_streak": 10, "max_streak": 10}, "game_id": "test"} +{"type": "duration", "id": 10, "duration": "too long", "info": {"max_score": 1000, "score": 1000, "wrong": 0, "missed": 0, "perfect": 10, "great": 0, "good": 0, "current_streak": 10, "max_streak": 10}, "game_id": "test"} +{"type": "end", "overallScore": 1000, "precision": 100.0, "score": {"max_score": 1000, "score": 1000, "wrong": 0, "missed": 0, "perfect": 10, "great": 0, "good": 0, "current_streak": 10, "max_streak": 10}} diff --git a/scorometer/tests/late/output b/scorometer/tests/late/output index 6132ebc..1cd5ea2 100644 --- a/scorometer/tests/late/output +++ b/scorometer/tests/late/output @@ -1,21 +1,21 @@ -{"type": "timing", "id": 1, "timing": "wrong", "info": {"max_score": 106200, "score": -25, "wrong": 1, "missed": 0, "perfect": 0, "great": 0, "good": 0, "current_streak": 0, "max_streak": 0}, "game_id": "test"} -{"type": "duration", "id": 1, "duration": "wrong", "info": {"max_score": 106200, "score": -25, "wrong": 1, "missed": 0, "perfect": 0, "great": 0, "good": 0, "current_streak": 0, "max_streak": 0}, "game_id": "test"} -{"type": "timing", "id": 2, "timing": "wrong", "info": {"max_score": 106200, "score": -50, "wrong": 2, "missed": 0, "perfect": 0, "great": 0, "good": 0, "current_streak": 0, "max_streak": 0}, "game_id": "test"} -{"type": "duration", "id": 2, "duration": "wrong", "info": {"max_score": 106200, "score": -50, "wrong": 2, "missed": 0, "perfect": 0, "great": 0, "good": 0, "current_streak": 0, "max_streak": 0}, "game_id": "test"} -{"type": "timing", "id": 3, "timing": "great", "info": {"max_score": 106200, "score": 25, "wrong": 2, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 1, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 3, "duration": "perfect", "info": {"max_score": 106200, "score": 25, "wrong": 2, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 1, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 4, "timing": "wrong", "info": {"max_score": 106200, "score": 0, "wrong": 3, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 4, "duration": "wrong", "info": {"max_score": 106200, "score": 0, "wrong": 3, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 5, "timing": "wrong", "info": {"max_score": 106200, "score": -25, "wrong": 4, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 5, "duration": "wrong", "info": {"max_score": 106200, "score": -25, "wrong": 4, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 6, "timing": "wrong", "info": {"max_score": 106200, "score": -50, "wrong": 5, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 6, "duration": "wrong", "info": {"max_score": 106200, "score": -50, "wrong": 5, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 7, "timing": "wrong", "info": {"max_score": 106200, "score": -75, "wrong": 6, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 7, "duration": "wrong", "info": {"max_score": 106200, "score": -75, "wrong": 6, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 8, "timing": "wrong", "info": {"max_score": 106200, "score": -100, "wrong": 7, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 8, "duration": "wrong", "info": {"max_score": 106200, "score": -100, "wrong": 7, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 9, "timing": "wrong", "info": {"max_score": 106200, "score": -125, "wrong": 8, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 9, "duration": "wrong", "info": {"max_score": 106200, "score": -125, "wrong": 8, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 10, "timing": "wrong", "info": {"max_score": 106200, "score": -150, "wrong": 9, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 10, "duration": "wrong", "info": {"max_score": 106200, "score": -150, "wrong": 9, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "end", "overallScore": -26675, "precision": 0.09, "score": {"max_score": 106200, "score": -26675, "wrong": 9, "missed": 1061, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}} +{"type": "timing", "id": 1, "timing": "great", "info": {"max_score": 1000, "score": 75, "wrong": 0, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 1, "max_streak": 1}, "game_id": "test"} +{"type": "duration", "id": 1, "duration": "perfect", "info": {"max_score": 1000, "score": 75, "wrong": 0, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 1, "max_streak": 1}, "game_id": "test"} +{"type": "timing", "id": 2, "timing": "great", "info": {"max_score": 1000, "score": 150, "wrong": 0, "missed": 0, "perfect": 0, "great": 2, "good": 0, "current_streak": 2, "max_streak": 2}, "game_id": "test"} +{"type": "duration", "id": 2, "duration": "perfect", "info": {"max_score": 1000, "score": 150, "wrong": 0, "missed": 0, "perfect": 0, "great": 2, "good": 0, "current_streak": 2, "max_streak": 2}, "game_id": "test"} +{"type": "timing", "id": 3, "timing": "great", "info": {"max_score": 1000, "score": 225, "wrong": 0, "missed": 0, "perfect": 0, "great": 3, "good": 0, "current_streak": 3, "max_streak": 3}, "game_id": "test"} +{"type": "duration", "id": 3, "duration": "perfect", "info": {"max_score": 1000, "score": 225, "wrong": 0, "missed": 0, "perfect": 0, "great": 3, "good": 0, "current_streak": 3, "max_streak": 3}, "game_id": "test"} +{"type": "timing", "id": 4, "timing": "great", "info": {"max_score": 1000, "score": 300, "wrong": 0, "missed": 0, "perfect": 0, "great": 4, "good": 0, "current_streak": 4, "max_streak": 4}, "game_id": "test"} +{"type": "duration", "id": 4, "duration": "perfect", "info": {"max_score": 1000, "score": 300, "wrong": 0, "missed": 0, "perfect": 0, "great": 4, "good": 0, "current_streak": 4, "max_streak": 4}, "game_id": "test"} +{"type": "timing", "id": 5, "timing": "great", "info": {"max_score": 1000, "score": 375, "wrong": 0, "missed": 0, "perfect": 0, "great": 5, "good": 0, "current_streak": 5, "max_streak": 5}, "game_id": "test"} +{"type": "duration", "id": 5, "duration": "perfect", "info": {"max_score": 1000, "score": 375, "wrong": 0, "missed": 0, "perfect": 0, "great": 5, "good": 0, "current_streak": 5, "max_streak": 5}, "game_id": "test"} +{"type": "timing", "id": 6, "timing": "great", "info": {"max_score": 1000, "score": 450, "wrong": 0, "missed": 0, "perfect": 0, "great": 6, "good": 0, "current_streak": 6, "max_streak": 6}, "game_id": "test"} +{"type": "duration", "id": 6, "duration": "perfect", "info": {"max_score": 1000, "score": 450, "wrong": 0, "missed": 0, "perfect": 0, "great": 6, "good": 0, "current_streak": 6, "max_streak": 6}, "game_id": "test"} +{"type": "timing", "id": 7, "timing": "great", "info": {"max_score": 1000, "score": 525, "wrong": 0, "missed": 0, "perfect": 0, "great": 7, "good": 0, "current_streak": 7, "max_streak": 7}, "game_id": "test"} +{"type": "duration", "id": 7, "duration": "perfect", "info": {"max_score": 1000, "score": 525, "wrong": 0, "missed": 0, "perfect": 0, "great": 7, "good": 0, "current_streak": 7, "max_streak": 7}, "game_id": "test"} +{"type": "timing", "id": 8, "timing": "great", "info": {"max_score": 1000, "score": 600, "wrong": 0, "missed": 0, "perfect": 0, "great": 8, "good": 0, "current_streak": 8, "max_streak": 8}, "game_id": "test"} +{"type": "duration", "id": 8, "duration": "perfect", "info": {"max_score": 1000, "score": 600, "wrong": 0, "missed": 0, "perfect": 0, "great": 8, "good": 0, "current_streak": 8, "max_streak": 8}, "game_id": "test"} +{"type": "timing", "id": 9, "timing": "great", "info": {"max_score": 1000, "score": 675, "wrong": 0, "missed": 0, "perfect": 0, "great": 9, "good": 0, "current_streak": 9, "max_streak": 9}, "game_id": "test"} +{"type": "duration", "id": 9, "duration": "perfect", "info": {"max_score": 1000, "score": 675, "wrong": 0, "missed": 0, "perfect": 0, "great": 9, "good": 0, "current_streak": 9, "max_streak": 9}, "game_id": "test"} +{"type": "timing", "id": 10, "timing": "great", "info": {"max_score": 1000, "score": 750, "wrong": 0, "missed": 0, "perfect": 0, "great": 10, "good": 0, "current_streak": 10, "max_streak": 10}, "game_id": "test"} +{"type": "duration", "id": 10, "duration": "perfect", "info": {"max_score": 1000, "score": 750, "wrong": 0, "missed": 0, "perfect": 0, "great": 10, "good": 0, "current_streak": 10, "max_streak": 10}, "game_id": "test"} +{"type": "end", "overallScore": 750, "precision": 100.0, "score": {"max_score": 1000, "score": 750, "wrong": 0, "missed": 0, "perfect": 0, "great": 10, "good": 0, "current_streak": 10, "max_streak": 10}} diff --git a/scorometer/tests/perfect_play/output b/scorometer/tests/perfect_play/output index 6132ebc..ddae037 100644 --- a/scorometer/tests/perfect_play/output +++ b/scorometer/tests/perfect_play/output @@ -1,21 +1,21 @@ -{"type": "timing", "id": 1, "timing": "wrong", "info": {"max_score": 106200, "score": -25, "wrong": 1, "missed": 0, "perfect": 0, "great": 0, "good": 0, "current_streak": 0, "max_streak": 0}, "game_id": "test"} -{"type": "duration", "id": 1, "duration": "wrong", "info": {"max_score": 106200, "score": -25, "wrong": 1, "missed": 0, "perfect": 0, "great": 0, "good": 0, "current_streak": 0, "max_streak": 0}, "game_id": "test"} -{"type": "timing", "id": 2, "timing": "wrong", "info": {"max_score": 106200, "score": -50, "wrong": 2, "missed": 0, "perfect": 0, "great": 0, "good": 0, "current_streak": 0, "max_streak": 0}, "game_id": "test"} -{"type": "duration", "id": 2, "duration": "wrong", "info": {"max_score": 106200, "score": -50, "wrong": 2, "missed": 0, "perfect": 0, "great": 0, "good": 0, "current_streak": 0, "max_streak": 0}, "game_id": "test"} -{"type": "timing", "id": 3, "timing": "great", "info": {"max_score": 106200, "score": 25, "wrong": 2, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 1, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 3, "duration": "perfect", "info": {"max_score": 106200, "score": 25, "wrong": 2, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 1, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 4, "timing": "wrong", "info": {"max_score": 106200, "score": 0, "wrong": 3, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 4, "duration": "wrong", "info": {"max_score": 106200, "score": 0, "wrong": 3, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 5, "timing": "wrong", "info": {"max_score": 106200, "score": -25, "wrong": 4, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 5, "duration": "wrong", "info": {"max_score": 106200, "score": -25, "wrong": 4, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 6, "timing": "wrong", "info": {"max_score": 106200, "score": -50, "wrong": 5, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 6, "duration": "wrong", "info": {"max_score": 106200, "score": -50, "wrong": 5, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 7, "timing": "wrong", "info": {"max_score": 106200, "score": -75, "wrong": 6, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 7, "duration": "wrong", "info": {"max_score": 106200, "score": -75, "wrong": 6, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 8, "timing": "wrong", "info": {"max_score": 106200, "score": -100, "wrong": 7, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 8, "duration": "wrong", "info": {"max_score": 106200, "score": -100, "wrong": 7, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 9, "timing": "wrong", "info": {"max_score": 106200, "score": -125, "wrong": 8, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 9, "duration": "wrong", "info": {"max_score": 106200, "score": -125, "wrong": 8, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 10, "timing": "wrong", "info": {"max_score": 106200, "score": -150, "wrong": 9, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 10, "duration": "wrong", "info": {"max_score": 106200, "score": -150, "wrong": 9, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "end", "overallScore": -26675, "precision": 0.09, "score": {"max_score": 106200, "score": -26675, "wrong": 9, "missed": 1061, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}} +{"type": "timing", "id": 1, "timing": "perfect", "info": {"max_score": 1000, "score": 100, "wrong": 0, "missed": 0, "perfect": 1, "great": 0, "good": 0, "current_streak": 1, "max_streak": 1}, "game_id": "test"} +{"type": "duration", "id": 1, "duration": "perfect", "info": {"max_score": 1000, "score": 100, "wrong": 0, "missed": 0, "perfect": 1, "great": 0, "good": 0, "current_streak": 1, "max_streak": 1}, "game_id": "test"} +{"type": "timing", "id": 2, "timing": "perfect", "info": {"max_score": 1000, "score": 200, "wrong": 0, "missed": 0, "perfect": 2, "great": 0, "good": 0, "current_streak": 2, "max_streak": 2}, "game_id": "test"} +{"type": "duration", "id": 2, "duration": "perfect", "info": {"max_score": 1000, "score": 200, "wrong": 0, "missed": 0, "perfect": 2, "great": 0, "good": 0, "current_streak": 2, "max_streak": 2}, "game_id": "test"} +{"type": "timing", "id": 3, "timing": "perfect", "info": {"max_score": 1000, "score": 300, "wrong": 0, "missed": 0, "perfect": 3, "great": 0, "good": 0, "current_streak": 3, "max_streak": 3}, "game_id": "test"} +{"type": "duration", "id": 3, "duration": "perfect", "info": {"max_score": 1000, "score": 300, "wrong": 0, "missed": 0, "perfect": 3, "great": 0, "good": 0, "current_streak": 3, "max_streak": 3}, "game_id": "test"} +{"type": "timing", "id": 4, "timing": "perfect", "info": {"max_score": 1000, "score": 400, "wrong": 0, "missed": 0, "perfect": 4, "great": 0, "good": 0, "current_streak": 4, "max_streak": 4}, "game_id": "test"} +{"type": "duration", "id": 4, "duration": "perfect", "info": {"max_score": 1000, "score": 400, "wrong": 0, "missed": 0, "perfect": 4, "great": 0, "good": 0, "current_streak": 4, "max_streak": 4}, "game_id": "test"} +{"type": "timing", "id": 5, "timing": "perfect", "info": {"max_score": 1000, "score": 500, "wrong": 0, "missed": 0, "perfect": 5, "great": 0, "good": 0, "current_streak": 5, "max_streak": 5}, "game_id": "test"} +{"type": "duration", "id": 5, "duration": "perfect", "info": {"max_score": 1000, "score": 500, "wrong": 0, "missed": 0, "perfect": 5, "great": 0, "good": 0, "current_streak": 5, "max_streak": 5}, "game_id": "test"} +{"type": "timing", "id": 6, "timing": "perfect", "info": {"max_score": 1000, "score": 600, "wrong": 0, "missed": 0, "perfect": 6, "great": 0, "good": 0, "current_streak": 6, "max_streak": 6}, "game_id": "test"} +{"type": "duration", "id": 6, "duration": "perfect", "info": {"max_score": 1000, "score": 600, "wrong": 0, "missed": 0, "perfect": 6, "great": 0, "good": 0, "current_streak": 6, "max_streak": 6}, "game_id": "test"} +{"type": "timing", "id": 7, "timing": "perfect", "info": {"max_score": 1000, "score": 700, "wrong": 0, "missed": 0, "perfect": 7, "great": 0, "good": 0, "current_streak": 7, "max_streak": 7}, "game_id": "test"} +{"type": "duration", "id": 7, "duration": "perfect", "info": {"max_score": 1000, "score": 700, "wrong": 0, "missed": 0, "perfect": 7, "great": 0, "good": 0, "current_streak": 7, "max_streak": 7}, "game_id": "test"} +{"type": "timing", "id": 8, "timing": "perfect", "info": {"max_score": 1000, "score": 800, "wrong": 0, "missed": 0, "perfect": 8, "great": 0, "good": 0, "current_streak": 8, "max_streak": 8}, "game_id": "test"} +{"type": "duration", "id": 8, "duration": "perfect", "info": {"max_score": 1000, "score": 800, "wrong": 0, "missed": 0, "perfect": 8, "great": 0, "good": 0, "current_streak": 8, "max_streak": 8}, "game_id": "test"} +{"type": "timing", "id": 9, "timing": "perfect", "info": {"max_score": 1000, "score": 900, "wrong": 0, "missed": 0, "perfect": 9, "great": 0, "good": 0, "current_streak": 9, "max_streak": 9}, "game_id": "test"} +{"type": "duration", "id": 9, "duration": "perfect", "info": {"max_score": 1000, "score": 900, "wrong": 0, "missed": 0, "perfect": 9, "great": 0, "good": 0, "current_streak": 9, "max_streak": 9}, "game_id": "test"} +{"type": "timing", "id": 10, "timing": "perfect", "info": {"max_score": 1000, "score": 1000, "wrong": 0, "missed": 0, "perfect": 10, "great": 0, "good": 0, "current_streak": 10, "max_streak": 10}, "game_id": "test"} +{"type": "duration", "id": 10, "duration": "perfect", "info": {"max_score": 1000, "score": 1000, "wrong": 0, "missed": 0, "perfect": 10, "great": 0, "good": 0, "current_streak": 10, "max_streak": 10}, "game_id": "test"} +{"type": "end", "overallScore": 1000, "precision": 100.0, "score": {"max_score": 1000, "score": 1000, "wrong": 0, "missed": 0, "perfect": 10, "great": 0, "good": 0, "current_streak": 10, "max_streak": 10}} diff --git a/scorometer/tests/random_miss/output b/scorometer/tests/random_miss/output index dcae7c2..3e553c4 100644 --- a/scorometer/tests/random_miss/output +++ b/scorometer/tests/random_miss/output @@ -1,17 +1,17 @@ -{"type": "timing", "id": 1, "timing": "wrong", "info": {"max_score": 106200, "score": -25, "wrong": 1, "missed": 0, "perfect": 0, "great": 0, "good": 0, "current_streak": 0, "max_streak": 0}, "game_id": "test"} -{"type": "duration", "id": 1, "duration": "wrong", "info": {"max_score": 106200, "score": -25, "wrong": 1, "missed": 0, "perfect": 0, "great": 0, "good": 0, "current_streak": 0, "max_streak": 0}, "game_id": "test"} -{"type": "timing", "id": 3, "timing": "great", "info": {"max_score": 106200, "score": 50, "wrong": 1, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 1, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 3, "duration": "perfect", "info": {"max_score": 106200, "score": 50, "wrong": 1, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 1, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 4, "timing": "wrong", "info": {"max_score": 106200, "score": 25, "wrong": 2, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 4, "duration": "wrong", "info": {"max_score": 106200, "score": 25, "wrong": 2, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 5, "timing": "wrong", "info": {"max_score": 106200, "score": 0, "wrong": 3, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 5, "duration": "wrong", "info": {"max_score": 106200, "score": 0, "wrong": 3, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 6, "timing": "wrong", "info": {"max_score": 106200, "score": -25, "wrong": 4, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 6, "duration": "wrong", "info": {"max_score": 106200, "score": -25, "wrong": 4, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 8, "timing": "wrong", "info": {"max_score": 106200, "score": -50, "wrong": 5, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 8, "duration": "wrong", "info": {"max_score": 106200, "score": -50, "wrong": 5, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 9, "timing": "wrong", "info": {"max_score": 106200, "score": -75, "wrong": 6, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 9, "duration": "wrong", "info": {"max_score": 106200, "score": -75, "wrong": 6, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "timing", "id": 10, "timing": "wrong", "info": {"max_score": 106200, "score": -100, "wrong": 7, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "duration", "id": 10, "duration": "wrong", "info": {"max_score": 106200, "score": -100, "wrong": 7, "missed": 0, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}, "game_id": "test"} -{"type": "end", "overallScore": -26625, "precision": 0.09, "score": {"max_score": 106200, "score": -26625, "wrong": 7, "missed": 1061, "perfect": 0, "great": 1, "good": 0, "current_streak": 0, "max_streak": 1}} +{"type": "timing", "id": 1, "timing": "perfect", "info": {"max_score": 1000, "score": 100, "wrong": 0, "missed": 0, "perfect": 1, "great": 0, "good": 0, "current_streak": 1, "max_streak": 1}, "game_id": "test"} +{"type": "duration", "id": 1, "duration": "perfect", "info": {"max_score": 1000, "score": 100, "wrong": 0, "missed": 0, "perfect": 1, "great": 0, "good": 0, "current_streak": 1, "max_streak": 1}, "game_id": "test"} +{"type": "timing", "id": 3, "timing": "perfect", "info": {"max_score": 1000, "score": 200, "wrong": 0, "missed": 0, "perfect": 2, "great": 0, "good": 0, "current_streak": 2, "max_streak": 2}, "game_id": "test"} +{"type": "duration", "id": 3, "duration": "perfect", "info": {"max_score": 1000, "score": 200, "wrong": 0, "missed": 0, "perfect": 2, "great": 0, "good": 0, "current_streak": 2, "max_streak": 2}, "game_id": "test"} +{"type": "timing", "id": 4, "timing": "perfect", "info": {"max_score": 1000, "score": 300, "wrong": 0, "missed": 0, "perfect": 3, "great": 0, "good": 0, "current_streak": 3, "max_streak": 3}, "game_id": "test"} +{"type": "duration", "id": 4, "duration": "perfect", "info": {"max_score": 1000, "score": 300, "wrong": 0, "missed": 0, "perfect": 3, "great": 0, "good": 0, "current_streak": 3, "max_streak": 3}, "game_id": "test"} +{"type": "timing", "id": 5, "timing": "perfect", "info": {"max_score": 1000, "score": 400, "wrong": 0, "missed": 0, "perfect": 4, "great": 0, "good": 0, "current_streak": 4, "max_streak": 4}, "game_id": "test"} +{"type": "duration", "id": 5, "duration": "perfect", "info": {"max_score": 1000, "score": 400, "wrong": 0, "missed": 0, "perfect": 4, "great": 0, "good": 0, "current_streak": 4, "max_streak": 4}, "game_id": "test"} +{"type": "timing", "id": 6, "timing": "perfect", "info": {"max_score": 1000, "score": 500, "wrong": 0, "missed": 0, "perfect": 5, "great": 0, "good": 0, "current_streak": 5, "max_streak": 5}, "game_id": "test"} +{"type": "duration", "id": 6, "duration": "perfect", "info": {"max_score": 1000, "score": 500, "wrong": 0, "missed": 0, "perfect": 5, "great": 0, "good": 0, "current_streak": 5, "max_streak": 5}, "game_id": "test"} +{"type": "timing", "id": 8, "timing": "great", "info": {"max_score": 1000, "score": 575, "wrong": 0, "missed": 0, "perfect": 5, "great": 1, "good": 0, "current_streak": 6, "max_streak": 6}, "game_id": "test"} +{"type": "duration", "id": 8, "duration": "too long", "info": {"max_score": 1000, "score": 575, "wrong": 0, "missed": 0, "perfect": 5, "great": 1, "good": 0, "current_streak": 6, "max_streak": 6}, "game_id": "test"} +{"type": "timing", "id": 9, "timing": "perfect", "info": {"max_score": 1000, "score": 675, "wrong": 0, "missed": 0, "perfect": 6, "great": 1, "good": 0, "current_streak": 7, "max_streak": 7}, "game_id": "test"} +{"type": "duration", "id": 9, "duration": "perfect", "info": {"max_score": 1000, "score": 675, "wrong": 0, "missed": 0, "perfect": 6, "great": 1, "good": 0, "current_streak": 7, "max_streak": 7}, "game_id": "test"} +{"type": "timing", "id": 10, "timing": "perfect", "info": {"max_score": 1000, "score": 775, "wrong": 0, "missed": 0, "perfect": 7, "great": 1, "good": 0, "current_streak": 8, "max_streak": 8}, "game_id": "test"} +{"type": "duration", "id": 10, "duration": "perfect", "info": {"max_score": 1000, "score": 775, "wrong": 0, "missed": 0, "perfect": 7, "great": 1, "good": 0, "current_streak": 8, "max_streak": 8}, "game_id": "test"} +{"type": "end", "overallScore": 725, "precision": 80.0, "score": {"max_score": 1000, "score": 725, "wrong": 0, "missed": 2, "perfect": 7, "great": 1, "good": 0, "current_streak": 8, "max_streak": 8}}