delete player if less than 100 tiles

This commit is contained in:
evanpelle
2024-08-16 21:30:27 -07:00
parent bc8463fa79
commit ed4201ab8c
4 changed files with 41 additions and 9 deletions
+2
View File
@@ -62,6 +62,7 @@ export interface Tile {
owner(): Player | TerraNullius
hasOwner(): boolean
isBorder(): boolean
borders(other: Player | TerraNullius): boolean
isInterior(): boolean
cell(): Cell
terrain(): Terrain
@@ -102,6 +103,7 @@ export interface Player {
isPlayer(): this is Player
neighbors(): (Player | TerraNullius)[]
numTilesOwned(): number
tiles(): ReadonlySet<Tile>
sharesBorderWith(other: Player | TerraNullius): boolean
toString(): string
}