Replaced O(n²) deduplication check per play with O(1) array replacement: - Added setPlayHistory() for game_state_sync (replaces entire array) - Simplified addPlayToHistory() for live play_resolved events (just push) This separates sync operations (replace) from live events (append), eliminating the need for deduplication checks during gameplay. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| auth.ts | ||
| CLAUDE.md | ||
| game.ts | ||
| ui.ts | ||