fix(web): auto-complete now works with cards remaining in waste
Build and Deploy / build-and-push (push) Failing after 3m55s

check_auto_complete no longer requires the waste pile to be empty —
only the stock must be exhausted and all tableau cards face-up.
next_auto_complete_move checks the waste top card before scanning
tableau, and auto_complete_step falls back to draw() when no direct
foundation move is available so the waste drains automatically.

Fixes the end-game state where the player could see a clear win but
the auto-complete interval never fired because the waste was non-empty.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
funman300
2026-05-13 21:30:42 -07:00
parent 11bfb4f1c8
commit 77df2d2aef
4 changed files with 65 additions and 45 deletions
Binary file not shown.