Skip to content
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

Closed
wants to merge 4 commits into from
Closed

Add make robot creator #2387

wants to merge 4 commits into from

Conversation

WaveOfDandelions
Copy link

No description provided.

src/makeRobot.js Outdated
this.coords.x = 1400;
this.coords.y = 500;

return this;
Copy link

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
Comment on lines 82 to 88
get info() {
return `name: ${name}, chip version: ${version}, wheels: ${wheels}`;
},

get location() {
return `${name}: x=${this.coords.x}, y=${this.coords.y}`;
},
Copy link

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

Suggested change
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}`;
},

Copy link

@choeqq choeqq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job ✅

@WaveOfDandelions WaveOfDandelions closed this by deleting the head repository Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants