- Detect when the robber steals a resource from player 0 by comparing resource counts before and after the move. - Display a temporary "CARD STOLEN" banner with the stolen resource name and robber's name. - Play a lose sound effect to provide immediate audio feedback. - Apply this notification logic consistently across all three locations where the robber is moved (AI turn, player turn, and initial setup). |
||
|---|---|---|
| .. | ||
| assets | ||
| data | ||
| src | ||
| index.html | ||
| styles.css | ||