valtech-components 4.0.575 → 4.0.576
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/esm2022/lib/components/organisms/mini-games/chessimals-engine.mjs +15 -4
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +15 -4
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/mini-games/chessimals-game.component.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -59,7 +59,7 @@ import fixWebmDuration from 'fix-webm-duration';
|
|
|
59
59
|
* Current version of valtech-components.
|
|
60
60
|
* This is automatically updated during the publish process.
|
|
61
61
|
*/
|
|
62
|
-
const VERSION = '4.0.
|
|
62
|
+
const VERSION = '4.0.576';
|
|
63
63
|
|
|
64
64
|
// Control de estado de refresco (singleton a nivel de módulo)
|
|
65
65
|
let isRefreshing = false;
|
|
@@ -62439,7 +62439,9 @@ function scoreBotMoveWithLookahead(state, move, difficulty, style, challengePres
|
|
|
62439
62439
|
? 0.4 + 0.1 * challengePressure
|
|
62440
62440
|
: difficulty === 'master'
|
|
62441
62441
|
? 0.72 + 0.22 * challengePressure
|
|
62442
|
-
:
|
|
62442
|
+
: nightmareMode && nightmareMode !== 'none'
|
|
62443
|
+
? 0.82 + 0.18 * challengePressure
|
|
62444
|
+
: 0.48 + 0.16 * challengePressure;
|
|
62443
62445
|
score -= opponentBestReply * replyWeight * style.reply;
|
|
62444
62446
|
}
|
|
62445
62447
|
if (difficulty === 'hard' || difficulty === 'master') {
|
|
@@ -62461,7 +62463,14 @@ function scoreBotMoveWithLookahead(state, move, difficulty, style, challengePres
|
|
|
62461
62463
|
const myBest = myCounters
|
|
62462
62464
|
.map(m => scoreBotMove(s2, m, difficulty, style, challengePressure, false, nightmareMode))
|
|
62463
62465
|
.sort((a, b) => b - a)[0] ?? 0;
|
|
62464
|
-
score +=
|
|
62466
|
+
score +=
|
|
62467
|
+
myBest *
|
|
62468
|
+
(difficulty === 'master'
|
|
62469
|
+
? 0.22
|
|
62470
|
+
: nightmareMode && nightmareMode !== 'none'
|
|
62471
|
+
? 0.2
|
|
62472
|
+
: 0.14) *
|
|
62473
|
+
style.reply;
|
|
62465
62474
|
}
|
|
62466
62475
|
catch {
|
|
62467
62476
|
// skip
|
|
@@ -62534,7 +62543,9 @@ function tuneBotStyle(style, difficulty, challengePressure, nightmareMode = 'non
|
|
|
62534
62543
|
? challengePressure * 0.45
|
|
62535
62544
|
: difficulty === 'master'
|
|
62536
62545
|
? challengePressure * 1.15
|
|
62537
|
-
:
|
|
62546
|
+
: nightmareMode && nightmareMode !== 'none'
|
|
62547
|
+
? challengePressure * 1.25
|
|
62548
|
+
: challengePressure;
|
|
62538
62549
|
return {
|
|
62539
62550
|
...style,
|
|
62540
62551
|
capture: style.capture * (1 + pressure * 0.28),
|