Examine and improve code from Memory.js for more simple split
Opened this issue · 3 comments
gigafiga21 commented
- search for DOM and code dependences between menu and game
- try to make split them more simple
blocks #11
gigafiga21 commented
Problem
DOM.game.cardsContainer
from Game recalculates its height to be under DOM.game.deskContainer
Possible solution
Mediator for toggling Menu
and Game
:
- hold
deskContainer
link in mediator class - show
deskContainer
for fan in menu under the game field - bind click on screen switching buttons to mediator
- mediator will move provided cards by
Game
into provided byMenu
container.
gigafiga21 commented
Problem
State of Continue
button (active/inactive).
Possible solution
Trigger active state after first click on New game
button
gigafiga21 commented
Write docs for MemoryGame in Wiki for Game, Memory classes and connected processes