have core/ directory use consolex for remote logging

This commit is contained in:
evanpelle
2024-12-18 12:00:00 -08:00
parent 642d5dc4ca
commit ff02d9d8b6
31 changed files with 91 additions and 66 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
import { consolex } from "../Consolex";
import {Cell, Game, PlayerType, Tile, TileEvent} from "../game/Game";
import {PseudoRandom} from "../PseudoRandom";
import {GameID, SpawnIntent} from "../Schemas";
@@ -16,7 +17,7 @@ export class BotSpawner {
let tries = 0
while (this.bots.length < numBots) {
if (tries > 10000) {
console.log('too many retries while spawning bots, giving up')
consolex.log('too many retries while spawning bots, giving up')
return this.bots
}
const spawn = this.spawnBot("Bot" + this.bots.length)