Skip to content

Commit

Permalink
updated rover
Browse files Browse the repository at this point in the history
  • Loading branch information
luciemariec committed Feb 26, 2024
1 parent b628387 commit 813181c
Show file tree
Hide file tree
Showing 4 changed files with 3,673 additions and 4 deletions.
2 changes: 1 addition & 1 deletion command.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Command {
this.commandType = commandType;
if (!commandType) {
throw Error("Command type required.");
}
}
this.value = value;
}

Expand Down
8 changes: 7 additions & 1 deletion message.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
class Message {
// Write code here!
constructor(name, commands) {
this.name = name;
if (!name) {
throw Error("Name required.");
}
this.commands = commands;
}
}

module.exports = Message;
Loading

0 comments on commit 813181c

Please sign in to comment.