js-chess-engine 2.3.4 → 2.3.5

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.
package/README.md CHANGED
@@ -240,7 +240,7 @@ console.log(result3.move) // AI move with level 3
240
240
 
241
241
  // TT size auto-scales by level (see Auto-Scaling Transposition Table section)
242
242
  const result4 = game.ai({ level: 5 })
243
- console.log(result4.move) // Level 5: 32 MB Node.js / 20 MB browser (auto)
243
+ console.log(result4.move) // Level 5: 40 MB Node.js / 20 MB browser (auto)
244
244
 
245
245
  // Override TT size manually if needed
246
246
  const result5 = game.ai({ level: 3, ttSizeMB: 128 })
@@ -478,7 +478,7 @@ console.log(result3.move) // AI move with level 3
478
478
 
479
479
  // TT size auto-scales by level (see Auto-Scaling Transposition Table section)
480
480
  const result4 = ai(fen, { level: 5 })
481
- console.log(result4.move) // Level 5: 32 MB Node.js / 20 MB browser (auto)
481
+ console.log(result4.move) // Level 5: 40 MB Node.js / 20 MB browser (auto)
482
482
 
483
483
  // Override TT size manually if needed
484
484
  const result5 = ai(fen, { level: 3, ttSizeMB: 128 })
@@ -625,7 +625,7 @@ The engine automatically adjusts cache size based on AI level and environment:
625
625
  | 2 | 1 MB | 0.5 MB | Mobile-friendly performance |
626
626
  | 3 | 4 MB | 2 MB | Balanced (default) |
627
627
  | 4 | 16 MB | 8 MB | Strong tactical play |
628
- | 5 | 32 MB | 20 MB | Maximum strength |
628
+ | 5 | 40 MB | 20 MB | Maximum strength |
629
629
 
630
630
  Lower levels use less memory for faster responses, higher levels use more for better move quality. Browser cache sizes are appropriate for modern devices (2024+). Override with `ttSizeMB` option if needed.
631
631
 
@@ -29,7 +29,7 @@ function getRecommendedTTSize(level) {
29
29
  2: 1, // Level 2: 1 MB
30
30
  3: 4, // Level 3: 4 MB (default)
31
31
  4: 16, // Level 4: 16 MB
32
- 5: 32, // Level 5: 32 MB
32
+ 5: 40, // Level 5: 40 MB
33
33
  };
34
34
  return nodeSizes[level] ?? 4;
35
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "js-chess-engine",
3
- "version": "2.3.4",
3
+ "version": "2.3.5",
4
4
  "description": "Simple and fast Node.js chess engine with configurable AI and no dependencies",
5
5
  "keywords": [
6
6
  "chess",