Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/gameboard.js')
-rw-r--r--src/modules/gameboard.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/modules/gameboard.js b/src/modules/gameboard.js
index 97538cd..d9919ec 100644
--- a/src/modules/gameboard.js
+++ b/src/modules/gameboard.js
@@ -205,8 +205,6 @@ export function start(el) {
startingLocations && getUnits(startingLocations).forEach(unit => unit.addEventListener('click', selectOffBoard));
getCells(svg).forEach(cell => {
- if (cell.dataset.x === '0' && cell.parentElement.dataset.y === '0') console.log('cell', cell);
-
cell.addEventListener('click', e => {
const occupant = getCellOccupant(cell);
let toPlace = placing.pop();