Skip to content

Add indicators for illegal card play #121

Description

@norswap

Currently the game allows playing a single card every turn.

Two things are thus illegal:

  • playing a card when it's not your turn
  • playing a card when you've already played one

But the interface currently shows the green drop background in all of these scenarios. This should be changed so that this drop background only appears in situation where playing a card is legal. The condition is probably already in the code somewhere, since we do not trigger a playCard transaction when it is not possible, which just need to extend the condition to the display of the green background.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions