Welcome to the Treehouse Community
Looking to learn something new?
My code lines up with the video's code, but when I launch the HTML in my browser, the token on the top left corner is missing? The console shows no errors.
In your Game.js file change this:
this.board = new Board;
this.board = new Board();
and in createPlayers() in the same file change this:
to this (1 instead of i) for the color red:
Hi Erica, Did you figure out the solution for your missing token? Can you please post it? I have the same problem. Thank you very much.
I figured it out. Unbelievable! I missed an r in backgroundColor.
token.style.backgroundColor = this.owner.color;