Web Dev Solutions

Catalin Mititiuc

From d2e80b341c323d56c6955decc2c4f8ae38228580 Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Sun, 28 Jul 2024 12:05:42 -0700 Subject: Place trooper counter under other counters --- src/modules/gameboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/gameboard.js b/src/modules/gameboard.js index 26e6c44..5851273 100644 --- a/src/modules/gameboard.js +++ b/src/modules/gameboard.js @@ -248,7 +248,7 @@ export function start(el) { } else if (toPlace && !occupant) { //soldier.place(svg, toPlace, this); top.collection.set(toPlace, { parent: top.cell }); - top.container.append(toPlace); + top.container.prepend(toPlace); //toPlace.removeEventListener('click', selectOffBoard); placing.push(toPlace); //getLockedSightLine(svg) ? updateSightLine(this) : clearSightLine(); -- cgit v1.2.3