From 513d6c230c89aea84341ecd7549073f3cf66439c Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Tue, 30 Jan 2024 19:08:16 -0500 Subject: [PATCH] [pongwars]: add territory claim message --- pongwars/index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/pongwars/index.html b/pongwars/index.html index fde8627..df84547 100644 --- a/pongwars/index.html +++ b/pongwars/index.html @@ -265,6 +265,7 @@ if (squares[i][j] !== color) { const foreign = squares[i][j]; if (state[foreign].elim) { + console.log(`${teams[color].name} claims the remaining territory of ${teams[foreign].name}`) for (let ai = 0; ai < numSquaresX; ai++) { for (let aj = 0; aj < numSquaresY; aj++) { if (squares[ai][aj] == foreign) squares[ai][aj] = color;