We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b6440c commit 89ac7d5Copy full SHA for 89ac7d5
1 file changed
src/hooks/usePlayController/useVsMaiaController.ts
@@ -70,6 +70,9 @@ export const useVsMaiaPlayController = (
70
}
71
72
if (simulateMaiaTime) {
73
+ const minimumDelayMs = 200 + Math.random() * 100
74
+ const delayMs = Math.max(moveDelay * 1000, minimumDelayMs)
75
+
76
setTimeout(() => {
77
const moveTime = controller.updateClock()
78
@@ -79,7 +82,7 @@ export const useVsMaiaPlayController = (
79
82
80
83
controller.addMoveWithTime(nextMove, moveTime)
81
84
playMoveSound(isCapture)
- }, moveDelay * 1000)
85
+ }, delayMs)
86
} else {
87
88
0 commit comments