improve front page

This commit is contained in:
Evan
2025-01-25 20:56:04 -08:00
parent 95aa222f8e
commit 3aeff1df29
5 changed files with 87 additions and 70 deletions
-3
View File
@@ -28,9 +28,6 @@ export class WinCheckExecution implements Execution {
}
const max = sorted[0]
const numTilesWithoutFallout = this.mg.numLandTiles() - this.mg.numTilesWithFallout()
if (this.mg.ticks() % 10 == 0) {
console.log(`player: ${max.name()} owns ${max.numTilesOwned()} tiles, ${numTilesWithoutFallout}`)
}
if (max.numTilesOwned() / numTilesWithoutFallout * 100 > this.mg.config().percentageTilesOwnedToWin()) {
this.mg.setWinner(max)
console.log(`${max.name()} has won the game`)