Hey, This was my first ever PR, so hopefully it checks out.
When trying to play the game at first, it was a bit hard to understand WHY what I was creating different color squares. After about 3 minutes of playing I searched for more instructions, and could not find any.
I spent about 5-10 minutes clicking random squares, when I figured out how the colors were being chosen.
I have created a simple function to create a Help Dialog box in the helpDialog.js file to separate concerns, and promote clean code.
In the Buttons file, I have added a funtion which either appends this dialog to the "level" element OR removes it if it already exists.
I have added appropriate styles to the css file, using BEM notation.
If there are any changes that need to be made, please let me know!
Hey, This was my first ever PR, so hopefully it checks out.
When trying to play the game at first, it was a bit hard to understand WHY what I was creating different color squares. After about 3 minutes of playing I searched for more instructions, and could not find any.
I spent about 5-10 minutes clicking random squares, when I figured out how the colors were being chosen.
I have created a simple function to create a Help Dialog box in the helpDialog.js file to separate concerns, and promote clean code.
In the Buttons file, I have added a funtion which either appends this dialog to the "level" element OR removes it if it already exists.
I have added appropriate styles to the css file, using BEM notation.
If there are any changes that need to be made, please let me know!