Back to the blog

Bug Fixing: Keeping Memory Turns Consistent

A memory board can become confusing if the player opens more cards while an unmatched pair is waiting to close. The current engine uses an explicit pending mismatch state to keep that interval separate from the next turn.

During that state, additional flips are ignored. Found cards, already-open cards and invalid positions are also rejected before they can change the board. The interface then resolves the mismatch and lets the next turn begin.

This is a bug-fixing note about an existing guard, not a claim that a new fix was released on the archive date. The programming article explains the wider separation between engine state and interface.

Read the programming walkthrough.