Skip to content

Conversation

@chase-turner
Copy link
Owner

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

[' ', ' ', ' '],
[' ', ' ', ' '],
[' ', ' ', ' ']
array1: [' ', ' ', ' '],

Choose a reason for hiding this comment

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

There's no need to directly manipulate the game's board variable.


function horizontalWin() {
// Your code here
if (array1===[x,x,x]||[o,o,o]){

Choose a reason for hiding this comment

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

Creative approach but you could check against the playerTurn variable here instead,

This will avoid checking for 'o' wins when playerTurn === x and vice versa,


function verticalWin() {
// Your code here
if (array1[0]===x||o && array2[0]===x||o && array3[0]===x||0){

Choose a reason for hiding this comment

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

Check against playerTurn here not the literal stings values of o and x

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