-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add make robot creator #2387
Add make robot creator #2387
Conversation
src/makeRobot.js
Outdated
this.coords.x = 1400; | ||
this.coords.y = 500; | ||
|
||
return this; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
evacuate doesn't have to return this
src/makeRobot.js
Outdated
get info() { | ||
return `name: ${name}, chip version: ${version}, wheels: ${wheels}`; | ||
}, | ||
|
||
get location() { | ||
return `${name}: x=${this.coords.x}, y=${this.coords.y}`; | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
those method should use name, wheels and version of THIS robot
get info() { | |
return `name: ${name}, chip version: ${version}, wheels: ${wheels}`; | |
}, | |
get location() { | |
return `${name}: x=${this.coords.x}, y=${this.coords.y}`; | |
}, | |
get info() { | |
return `name: ${this.name}, chip version: ${this.version}, wheels: ${this.wheels}`; | |
}, | |
get location() { | |
return `${this.name}: x=${this.coords.x}, y=${this.coords.y}`; | |
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job ✅
No description provided.