Skip to content

Display Legal Move Indicators #18

Description

@RJPalmer

Description

Show all legal destinations after selecting a movable piece, distinguishing between regular moves and capture moves.

User Story

As a player, I want to see all possible moves for my selected piece so I can make informed decisions about my next move.

Acceptance Criteria

  • Valid regular moves display green indicators (or similar positive color)
  • Capture moves display a distinct visual indicator (different color or pattern)
  • Indicators are clearly distinguishable from the board and pieces
  • Indicators disappear after the move is completed
  • Indicators disappear if the selection is canceled
  • Indicators appear within 100ms of piece selection

Technical Notes

  • Consider using semi-transparent overlays or borders on destination squares
  • Different colors/patterns should be accessible to colorblind players
  • Ensure indicators don't interfere with hover states
  • Plan for fast updates as board state changes

Suggested Implementation Tasks

  • Implement move indicator rendering system
  • Add regular move visual indicator
  • Add capture move visual indicator (distinct from regular moves)
  • Implement indicator clearing logic
  • Test visibility and clarity
  • Verify accessibility (not color-dependent alone)

Priority

High

Labels

UI/UX, enhancement

Estimated Effort

Medium

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions