JavaScript MVC lecture material implementing P6 - "The Dice Game"
- What is MVC?
- Debugging a javascript application
- How to make your application "modular" with small, reusable components
- Maintaining namespacing within your applicaitons
- Managing scope
- Data and the "business logic", or "game logic"
- Controls access to data
- Manages application requests for data
- Presentation of the data
- How the data is displayed
- The facilitator between the Model and View
- Manages the interactions with the application
-
- SIDE_COUNT
- value
-
- roll
- _generateRandomValue
-
- dieFactory
- dice
-
- addDie
- rollDice
- clearDice
-
- DIE_CLASS_NAME
- DICE_CONTAINER_NAME
- diceContainer
-
- dieTemplate
- compileDiceTemplate
- render
-
- game
- display
-
- start
- bindEventListeners
- addDie
- rollDice
- clearDice
- updateView