fix: Hex Wars - Mine gibt keine -3 Punkte mehr
This commit is contained in:
@@ -118,9 +118,8 @@ function calcScore(grid, terrain, playerId) {
|
||||
let score = 0;
|
||||
for (let r=0;r<GRID;r++) for (let c=0;c<GRID;c++) {
|
||||
if (grid[r][c] !== playerId) continue;
|
||||
if (terrain[r][c] === T_GOLD) score += 3;
|
||||
else if (terrain[r][c] === T_MINE) score -= 3;
|
||||
else score += 1;
|
||||
if (terrain[r][c] === T_GOLD) score += 3;
|
||||
else score += 1; // Mine zählt als normales Feld (+1), Strafe kommt durch Explosion der Nachbarn
|
||||
}
|
||||
return Math.max(0, score);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user