From f02f4bd9d31bb13aaef7c3189d1b22f598523972 Mon Sep 17 00:00:00 2001 From: kobakitty Date: Wed, 19 Jul 2023 00:49:43 +0300 Subject: [PATCH 1/3] Update MessageTemplate.tsx added 'thank you' --- src/views/ReportsCenter/MessageTemplate.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/ReportsCenter/MessageTemplate.tsx b/src/views/ReportsCenter/MessageTemplate.tsx index 7613aed6a6..bee3870197 100644 --- a/src/views/ReportsCenter/MessageTemplate.tsx +++ b/src/views/ReportsCenter/MessageTemplate.tsx @@ -41,7 +41,7 @@ export const WARNING_TEMPLATES: MessageTemplates = { Please consider resigning games rather than letting them time out, as this is fairer to your opponents than making them wait for - your clock to run out.`, + your clock to run out. Thank you.`, show_warning_button: true, }, }, From f7cef51835888fc88bbd10450fd446e8bc611902 Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Thu, 28 Sep 2023 13:28:29 -0600 Subject: [PATCH 2/3] Fix missing [WB]+ prefix before 'Server Decision' in game history --- src/lib/misc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/misc.ts b/src/lib/misc.ts index 726ad1f935..fe5671c093 100644 --- a/src/lib/misc.ts +++ b/src/lib/misc.ts @@ -201,7 +201,7 @@ export function getGameResultText( return ""; } /* SGFs will encode the full result in the outcome */ - if (/[+]/.test(outcome)) { + if (/[+]/.test(outcome) && !/Server Decision/.test(outcome)) { return outcome; } From 4578ab4c1d5658a72170c0804905b8fa1a53bab6 Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Thu, 28 Sep 2023 14:17:57 -0600 Subject: [PATCH 3/3] Send along prisoner and komi information when analyzing demo boards --- package.json | 2 +- src/views/Game/AIDemoReview.tsx | 3 +++ yarn.lock | 8 ++++---- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 238ff00a40..5423e3cd94 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "express": "^4.17.1", "express-http-proxy": "^1.6.0", "fork-ts-checker-webpack-plugin": "^8.0.0", - "goban": "=0.7.13", + "goban": "=0.7.15", "gulp": "^4.0.2", "gulp-clean-css": "^4.3.0", "gulp-eslint-new": "^1.7.1", diff --git a/src/views/Game/AIDemoReview.tsx b/src/views/Game/AIDemoReview.tsx index 11963839bc..f66682e922 100644 --- a/src/views/Game/AIDemoReview.tsx +++ b/src/views/Game/AIDemoReview.tsx @@ -208,6 +208,9 @@ export function AIDemoReview({ uuid: uuid(), channel_id: `ai-position-analysis-stream-review-${goban.review_id}`, rules: engine.rules, + black_prisoners: goban.engine?.getBlackPrisoners() || 0, + white_prisoners: goban.engine?.getWhitePrisoners() || 0, + komi: goban.engine?.komi || 0, board: move.state.board, player: move.state.player, }) diff --git a/yarn.lock b/yarn.lock index 43a11a3698..3ed91e8453 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5352,10 +5352,10 @@ glogg@^1.0.0: dependencies: sparkles "^1.0.0" -goban@=0.7.13: - version "0.7.13" - resolved "https://registry.yarnpkg.com/goban/-/goban-0.7.13.tgz#a17ca1ab1931dc8b313c72ca894cdfbea463a8e3" - integrity sha512-sKoHlvBiexrjYSDXPvmIeW/ciGJkOkuKOt2E2dLwmTFqF9yfUTcDGFXHTATDDLEJt8XrgLXCa1vD00pJYEtFlA== +goban@=0.7.15: + version "0.7.15" + resolved "https://registry.yarnpkg.com/goban/-/goban-0.7.15.tgz#def8be0d41b7470a1246f5668519c7e0f6eb89e6" + integrity sha512-HwhOHzNK+DImwfeeOFHm4QoxTvf/CZ99ngPwqt9c6nHaRpiW/G6rVCHudokoNky40bxG/BsSaVmkBEcGRt/seA== dependencies: eventemitter3 "^5.0.0"