Angular
Let's Code Together - Flopnames

Create a Model for the Tiles

Mute
Current Time 0:00
/
Duration Time 0:00
Loaded: 0%
Progress: 0%
Stream TypeLIVE
Remaining Time -0:00
 
PRO

In this video

We create a model for our game grid which is implemented as an array of arrays with string elements.

Assignment:
  1. Set the background color class "tileClassXX" to the correct class from the grid key
  2. Do this inside the selectTile method
  3. Grab the string from the correct place in the model based on the coordinates of the tile that was clicked
 

I finished! On to the next chapter