feat : add minimum delay to engine next move in /play

This commit is contained in:
GuillaumeSD
2025-05-17 15:14:44 +02:00
parent 0e5939675b
commit b07a8e14c1
2 changed files with 8 additions and 0 deletions

View File

@@ -13,3 +13,6 @@ export const isInViewport = (element: HTMLElement) => {
rect.bottom <= (window.innerHeight || document.documentElement.clientHeight)
);
};
export const sleep = (ms: number) =>
new Promise((resolve) => setTimeout(resolve, ms));