Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
- Connecting with the DOM
- Connecting with the DOM Solution 3:21
- Rendering Spaces
- Render the Board
- Render the Token
- Rendering the Spaces, Board, and Tokens Solution 5:11
- `Write Getter Methods for unusedTokens, activePlayer and activeToken
- Getter Methods Solution 2:44
- Build the startGame() Method
- startGame() Method Solution 2:53
- Reviewing Rendering the Game 5 questions
Well done!
You have completed Object-Oriented JavaScript: Challenge!
Instruction
Rendering Spaces
Assignment:
Add two properties in the Space class constructor method: diameter and radius. Set the value of the diameter property equal to 76. The radius property should be equal to half the value of the diameter property.
Create a method inside the Space class called drawSVGSpace() using the requirements and guidelines below.
Render Methods
A "render method" is a term I'm using to descr...