- 2
PLEASE WRITE MOVE() AND EAT() FOR GAME----------PLEASE HELPPPPP! (PART 1)
PLEASE WRITE MOVE() AND EAT() FOR GAME----------PLEASE HELPPPPP! // This is class.js for classes class Grass{ constructor(x,y,ind){ this.index = ind; this.x = x; this.y = y; this.energy = 5; this.multiply = 0; } newDirections(){ this.directions = [ [this.x - 1, this.y - 1], [this.x , this.y - 1], [this.x + 1, this.y - 1], [this.x - 1, this.y ], [this.x + 1, this.y ], [this.x - 1, this.y + 1], [this.x , this.y + 1], [this.x + 1, this.y + 1] ]; }
2 Answers
+ 6
Show us what you've already tried for Move() and Eat(), please. If you haven't even attempted, then I would hate to be someone that doesn't help you by helping you. That's like learning to ride a bike, and instead of you riding the bike to learn from it, you ask others to ride the bike for you. Get what I mean? If you fall, I'll help you get back up on your bike and give you pointers on how to not fall.
+ 2
Here's Part 1 - you can just save it then you'll have a copy you can add parts 2-6 into
https://code.sololearn.com/WV7CWUn5RELU/?ref=app
Then you can post a link in this first question and you don't need the others...
I'll delete this in a few hours or so.
Other parts:
https://www.sololearn.com/Discuss/734606/?ref=app
https://www.sololearn.com/Discuss/734614/?ref=app
https://www.sololearn.com/Discuss/734619/?ref=app
https://www.sololearn.com/Discuss/734629/?ref=app
https://www.sololearn.com/Discuss/734637/?ref=app