Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-04-26 16:08:40 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-04-26 16:08:40 -0700
commitf07d120b4bb245a76bdd80712a33ba8b222d966a (patch)
tree5cf9ba397848ec29db4d411ba3158aaf620c1fbd /src/modules/game/counter.js
parenta5e1ebcd478fea473de68aab738d5fb2cb5ddd7c (diff)
Refactor sight line module to remove almost all querying for elements
Diffstat (limited to 'src/modules/game/counter.js')
-rw-r--r--src/modules/game/counter.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/game/counter.js b/src/modules/game/counter.js
index 69552d8..cc15509 100644
--- a/src/modules/game/counter.js
+++ b/src/modules/game/counter.js
@@ -1,8 +1,11 @@
const svgns = "http://www.w3.org/2000/svg";
export default class Counter {
- constructor(svg) {
+ #board;
+
+ constructor(svg, board) {
this.svg = svg;
+ this.#board = board;
this.selectedClass = 'selected';
}