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 +3 -3
- package/dist/ai/TranspositionTable.js +1 -1
- package/package.json +1 -1
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:
|
|
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:
|
|
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 |
|
|
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
|
|