From 15728d8d8b6c057a1b4c95af0d110246e7608240 Mon Sep 17 00:00:00 2001 From: rinick Date: Thu, 20 Apr 2023 21:42:09 -0700 Subject: [PATCH] use rect size to indicate the probability of a dead stone --- src/modules/board_drawer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/board_drawer.js b/src/modules/board_drawer.js index 41e86a70..544e56a7 100644 --- a/src/modules/board_drawer.js +++ b/src/modules/board_drawer.js @@ -641,7 +641,7 @@ let board_drawer_prototype = { case "death": this.has_drawn_ownership = true; - this.fsquare(x, y, 1/6, mark_colour_from_state(tstate, "#00000080")); + this.fsquare(x, y, o.deathProb/5, mark_colour_from_state(tstate, "#00000080")); break; case "own_alt": @@ -775,9 +775,9 @@ let board_drawer_prototype = { let own = ownership[x + (y * board.width)]; if (own > 0 && state === "w") { - this.needed_marks[x][y] = {type: "death"}; + this.needed_marks[x][y] = {type: "death", deathProb: own}; } else if (own < 0 && state === "b") { - this.needed_marks[x][y] = {type: "death"}; + this.needed_marks[x][y] = {type: "death", deathProb: -own}; } } }