@vibemancer/core 0.1.8 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -142,6 +142,7 @@ function calculateWarmupMultiplier(prev, current) {
142
142
  return 1 + RULES.WARMUP_MAX_PENALTY - similarity * (RULES.WARMUP_MAX_BONUS + RULES.WARMUP_MAX_PENALTY);
143
143
  }
144
144
  var MATCH_DURATION = 3e4;
145
+ var DEFAULT_SEED = 42;
145
146
  var MAX_HEALTH = RULES.WIZARD_HEALTH;
146
147
  var COLLISION_RADIUS = WIZARD_RADIUS;
147
148
  var MOVE_SPEED = RULES.MOVEMENT_SPEED;
@@ -207,7 +208,7 @@ function currentRuleset() {
207
208
  }
208
209
 
209
210
  // src/engine-version.ts
210
- var ENGINE_VERSION = 1782305393165;
211
+ var ENGINE_VERSION = 1782526029280;
211
212
 
212
213
  // src/engine/hooks-runtime.ts
213
214
  var _g = globalThis;
@@ -1220,8 +1221,8 @@ function simulate(wizard1AI, wizard2AI, options = {}) {
1220
1221
  if (typeof wizard2AI !== "function") {
1221
1222
  throw new Error("wizard2AI must be a function");
1222
1223
  }
1223
- const { maxTicks: rawMaxTicks = MATCH_DURATION, seed: rawSeed = Date.now(), spawnDistance: rawSpawnDistance, skipHistory = false } = options;
1224
- const seed = Number.isFinite(rawSeed) ? Math.floor(rawSeed) & 2147483647 : Date.now() & 2147483647;
1224
+ const { maxTicks: rawMaxTicks = MATCH_DURATION, seed: rawSeed = DEFAULT_SEED, spawnDistance: rawSpawnDistance, skipHistory = false } = options;
1225
+ const seed = Number.isFinite(rawSeed) ? Math.floor(rawSeed) & 2147483647 : DEFAULT_SEED;
1225
1226
  const maxTicks = Number.isFinite(rawMaxTicks) && rawMaxTicks > 0 ? Math.min(Math.floor(rawMaxTicks), 1e5) : MATCH_DURATION;
1226
1227
  const spawnDistance = Number.isFinite(rawSpawnDistance) && rawSpawnDistance > 0 ? Math.min(rawSpawnDistance, ARENA_MAX - ARENA_MIN - 100) : SPAWN_DISTANCE;
1227
1228
  const config = Object.freeze({
@@ -1357,11 +1358,11 @@ var ManualMatch = class {
1357
1358
  this.wizard1AI = wizard1AI;
1358
1359
  this.wizard2AI = wizard2AI;
1359
1360
  const {
1360
- seed: rawSeed = Date.now(),
1361
+ seed: rawSeed = DEFAULT_SEED,
1361
1362
  spawnDistance: rawSpawn,
1362
1363
  maxTicks: rawMaxTicks = MATCH_DURATION
1363
1364
  } = options;
1364
- this.seed = Number.isFinite(rawSeed) ? Math.floor(rawSeed) & 2147483647 : Date.now() & 2147483647;
1365
+ this.seed = Number.isFinite(rawSeed) ? Math.floor(rawSeed) & 2147483647 : DEFAULT_SEED;
1365
1366
  this.maxTicks = Number.isFinite(rawMaxTicks) && rawMaxTicks > 0 ? Math.min(Math.floor(rawMaxTicks), 1e5) : MATCH_DURATION;
1366
1367
  const spawnDistance = Number.isFinite(rawSpawn) && rawSpawn > 0 ? Math.min(rawSpawn, ARENA_MAX - ARENA_MIN - 100) : SPAWN_DISTANCE;
1367
1368
  this.config = Object.freeze({
@@ -10442,6 +10443,7 @@ export {
10442
10443
  calculateMissileSimilarity,
10443
10444
  calculateWarmupMultiplier,
10444
10445
  MATCH_DURATION,
10446
+ DEFAULT_SEED,
10445
10447
  MAX_HEALTH,
10446
10448
  COLLISION_RADIUS,
10447
10449
  MOVE_SPEED,
@@ -10614,4 +10616,4 @@ export {
10614
10616
  diagnoseTrace,
10615
10617
  formatDiagnosis
10616
10618
  };
10617
- //# sourceMappingURL=chunk-NPRXDUQZ.js.map
10619
+ //# sourceMappingURL=chunk-LNFGLNTJ.js.map