-
Notifications
You must be signed in to change notification settings - Fork 0
Space #7
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
base: gh-pages
Are you sure you want to change the base?
Conversation
| let crewMemberJob = this.crew[i].job; | ||
| console.log("Crew Member Job Type: "+(jobTypes[crewMemberJob])); | ||
| if (((jobTypes[crewMemberJob])==(this.type))||(this.crew[i].job=='programmer')){ | ||
| good2go = true; |
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.
i would define good2go as a local variable in the function and default it to false.
| good2go = true; | ||
| } | ||
| } | ||
| if (good2go==true){ |
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.
this if condition could just be if(good2go) {
| let assert = require('assert'); | ||
|
|
||
| let good2go = null; | ||
|
|
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.
Missing documentation on your functions and classes
| let x2 = Number(toWhere.charAt(0)); | ||
| let y2 = Number(toWhere.charAt(1)); | ||
| //If the player enters an empty square as whichPiece | ||
| if (game.board.grid[y1][x1]===null){ |
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.
Your y1 and x1 are backwards
| console.log("The square you specified in response to 'Which piece?' has an 'X' piece in it. Please try again.") | ||
| return; | ||
| }else{ | ||
| if(game.board.grid[y2][x2]!=null){ |
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.
your y2 and x2 are backwards
| function Game() { | ||
|
|
||
| this.board = new Board(); | ||
| this.moveChecker = function(whichPiece, toWhere){ |
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.
I would expect that the the board's grid attribute would not be accessed directly from here.
| //checker.create per checker | ||
| }*/ | ||
|
|
||
| class Checker { |
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.
Missing function and class documentation
Checkpoint Rubric
This is the rubric that your instructor will use to grade your checkpoints. Please do not edit.
Checkpoint 1
Checkpoint 2
Checkpoint 3