Skip to content

Conversation

@psc478
Copy link
Owner

@psc478 psc478 commented Nov 4, 2017

Checkpoint Rubric

This is the rubric that your instructor will use to grade your checkpoints. Please do not edit.

Checkpoint 1

  • All tests passed: 40 points
  • Proper use of documentation (commenting on code): 15 points
  • Properly indented code: 15 points
  • Demonstrated effective use of JavaScript: 30 points

Checkpoint 2

  • The application works as it should: 40 points
  • Proper use of documentation (commenting on code): 15 points
  • Properly indented code: 15 points
  • Demonstrated effective use of JavaScript and the DOM API: 30 points

Checkpoint 3

  • Use of React: 25 points
  • Accesses an API: 25 points
  • Proper use of documentation (commenting on code): 25 points
  • The application functions as it should: 25 points

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;
Copy link

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){
Copy link

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;

Copy link

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){
Copy link

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){
Copy link

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){
Copy link

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 {
Copy link

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

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.

3 participants