Skip to content

Loss condition does not trigger in 2048-expert #134

@JosiahBull

Description

@JosiahBull

While playing 2048, I entered a loss condition in which I could not make any further moves. I was not presented with an error alert/didn't have the game reset.

Browser information
Firefox 102.0.1 (64-bit)

Steps to reproduce

  • run npm start
  • visit http://localhost:1234/2048-expert/index.html
  • play by randomly pressing keys until the arena is completely filled

Potential cause of the bug
The checkLoss() functionality to check if there is a valid move remaining has introduced a bug in which the game cannot be lost.

Screenshots

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    2048 expert2048 Expert mini-gamebugSomething isn't workingpendingPending approval

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions