deohgu / deohgu/minesweeper

On Cell hover whilst mouse down change styling

Open
#38 1 comment 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
TypeScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

On Cell hover whilst `mousedown` event, the Cell that is being hovered should have the style as if it was being pressed, and the emote should change to open mouth during the event and revert back to smiley face afterwards.
Currently the cell awaits to a pressed prop, that shouldn't be the case in its entirety.


#### Performance wise :
Is it better to load both images and have one conditionally hidden with CSS.

#### Check examples to understand :
(press **and hold** over a Cell and you will observe the style change)
[Here is an example of the functionality.](http://minesweeperonline.com/?scrlybrkr)
[Here is another. ](http://www.play-minesweeper.com/)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the Cell component and tracing its mousedown handling and pressed prop. Compare the current behavior with the linked Minesweeper examples, then verify that holding the pointer over a Cell shows its pressed styling and open-mouth emote, reverting to the smiley state afterward.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend, game-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.