raulvillares / 3sacrowd

Tic-Tac-Toe puzzle using plain javascript :video_game:
https://raulvillares.github.io/3sacrowd/index.html
35 stars 69 forks source link

Made Start buttons and squares interactive with mouse hover #37

Closed ShaileshSridhar2403 closed 6 years ago

ShaileshSridhar2403 commented 6 years ago

When the user hovers over the squares which can be changed upon mouse click in the present state (eg.If the pin button is on so only pinnable squares will interact"), then the square increases in size. This improves the feel of the game.

raulvillares commented 6 years ago

I like the feeling I get now. Much nicer 😄

However, Codacy says the complexity of Board.prototype.mouseover = function(event){ is too high. It's there any chance to reduce it?

https://www.codacy.com/app/raulvillares/vanilla_3sacrowd/pullRequest?prid=1233014

Thanks!

ShaileshSridhar2403 commented 6 years ago

I've reduced the complexity