NorthAmerica has panama canal, fixed ocean calculation for Oceania

This commit is contained in:
Evan
2024-12-12 21:00:10 -08:00
parent 939761fc76
commit 951585a8ed
5 changed files with 10 additions and 26115 deletions
+2 -2
View File
@@ -233,9 +233,9 @@
* remove dash from game id DONE 12/11/2024
* bug: transport display event when it lands DONE 12/11/2024
* have crash print stacktrace DONE 12/11/2024
* bug: name not updating location in spawn phase
* make boats work on oceania
* bug: name not updating location in spawn phase DONE 12/12/2024
* add panama canal NA
* make boats work on oceania
* allow longer names and allow them to be displayed in the Rank UI not be cut
* make boats work on lakes
* record game winner
File diff suppressed because one or more lines are too long
Binary file not shown.

Before

Width:  |  Height:  |  Size: 457 KiB

After

Width:  |  Height:  |  Size: 451 KiB

+1 -26111
View File
File diff suppressed because one or more lines are too long
+6 -1
View File
@@ -182,7 +182,12 @@ function packTerrain(map: Terrain[][]): Uint8Array {
}
function processOcean(map: Terrain[][]) {
const queue: Coord[] = [{ x: 0, y: 0 }];
const queue: Coord[] = [];
if (map[0][0].type == TerrainType.Water) {
queue.push({ x: 0, y: 0 })
} else {
queue.push({ x: map.length - 1, y: map[0].length - 1 })
}
const visited = new Set<string>();
while (queue.length > 0) {