-
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
solution #2480
base: master
Are you sure you want to change the base?
solution #2480
Conversation
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.
Looks good!
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.
Well done, but don`t forget about good code formating.
x: 0, | ||
y: 0, | ||
}, | ||
get info() { |
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.
get info() { | |
get info() { |
+ `wheels: ${this.wheels}` | ||
); | ||
}, | ||
get location() { |
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.
get location() { | |
get location() { |
get location() { | ||
return `${this.name}: x=${this.coords.x}, y=${this.coords.y}`; | ||
}, | ||
goForward(step = 1) { |
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.
goForward(step = 1) { | |
goForward(step = 1) { |
|
||
return this; | ||
}, | ||
goBack(step = 1) { |
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.
goBack(step = 1) { | |
goBack(step = 1) { |
|
||
return this; | ||
}, | ||
goRight(step = 1) { |
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.
goRight(step = 1) { | |
goRight(step = 1) { |
|
||
return this; | ||
}, | ||
goLeft(step = 1) { |
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.
goLeft(step = 1) { | |
goLeft(step = 1) { |
|
||
return this; | ||
}, | ||
evacuate() { |
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() { | |
evacuate() { |
No description provided.