perennialAutodidact / memory-snap

0 stars 0 forks source link

PlayerHUD component - display player information #7

Closed perennialAutodidact closed 1 year ago

perennialAutodidact commented 1 year ago

The PlayerHUD component will display the name and score for a single player. The component will reused for each player.

The PlayerHUD will render with player data from the GameContext.

See design/components/GameBoard.png for design details.

This image shows two PlayerHUD components rendered side-by-side in a container.
image image

perennialAutodidact commented 1 year ago

For now, the playerHUD components can be of equal width, but considerations should be made as to how they will change width dynamically based on the current player's turn.

perennialAutodidact commented 1 year ago

The component should render the player's name and score from context.