gigafiga21/MemoryGame

Examine and improve code from Memory.js for more simple split

Opened this issue · 3 comments

  • search for DOM and code dependences between menu and game
  • try to make split them more simple

blocks #11

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 by Menu container.

Problem

State of Continue button (active/inactive).

Possible solution

Trigger active state after first click on New game button

Write docs for MemoryGame in Wiki for Game, Memory classes and connected processes