You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You're using a setTimeout here to delay the cpu's move attack/heal. This isn't immediately obvious to the player playing as banana joe so they may not wait and continue to click on attack/heal only to suddenly see their own health (seemingly) randomly decrease when the cpu's timer finally fires and they attack.
A potential way to improve the user experience would be to hide the attack/heal buttons temporarily and then show sometging to indicate that the game is waiting for the cpu to take their turn.
You're using a setTimeout here to delay the cpu's move attack/heal. This isn't immediately obvious to the player playing as banana joe so they may not wait and continue to click on attack/heal only to suddenly see their own health (seemingly) randomly decrease when the cpu's timer finally fires and they attack.
A potential way to improve the user experience would be to hide the attack/heal buttons temporarily and then show sometging to indicate that the game is waiting for the cpu to take their turn.
week5-clientside-GullyMans/src/App.jsx
Lines 29 to 34 in d99e3bc
The text was updated successfully, but these errors were encountered: