Skip to content

Add g2048 tile spawn regression#595

Open
devshahofficial wants to merge 1 commit into
PufferAI:4.0from
devshahofficial:devshahofficial/test-g2048-tile-spawn-after-merge
Open

Add g2048 tile spawn regression#595
devshahofficial wants to merge 1 commit into
PufferAI:4.0from
devshahofficial:devshahofficial/test-g2048-tile-spawn-after-merge

Conversation

@devshahofficial

Copy link
Copy Markdown

Summary

  • Add a C-level regression for g2048 tile spawning after a full-board merge.
  • Cover the stale empty_count scenario reported in both duplicate issues.

Root cause

The reported bug occurs when tile placement uses the pre-merge empty-cell count. Current 4.0 already refreshes empty_count before spawning; this regression locks in that behavior.

Validation

  • python -m pytest tests/test_g2048_spawn.py tests/test_import_performance.py -q

Fixes #491
Fixes #492

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant