{"action":"created","issue":{"url":"https://api.github.com/repos/ga-wdi-boston/game-project/issues/60","repository_url":"https://api.github.com/repos/ga-wdi-boston/game-project","labels_url":"https://api.github.com/repos/ga-wdi-boston/game-project/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/ga-wdi-boston/game-project/issues/60/comments","events_url":"https://api.github.com/repos/ga-wdi-boston/game-project/issues/60/events","html_url":"https://github.com/ga-wdi-boston/game-project/issues/60","id":146067942,"number":60,"title":"Difficulty Updating \"currentBoard\" array","user":{"login":"OllieBuilds","id":15033849,"avatar_url":"https://avatars.githubusercontent.com/u/15033849?v=3","gravatar_id":"","url":"https://api.github.com/users/OllieBuilds","html_url":"https://github.com/OllieBuilds","followers_url":"https://api.github.com/users/OllieBuilds/followers","following_url":"https://api.github.com/users/OllieBuilds/following{/other_user}","gists_url":"https://api.github.com/users/OllieBuilds/gists{/gist_id}","starred_url":"https://api.github.com/users/OllieBuilds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OllieBuilds/subscriptions","organizations_url":"https://api.github.com/users/OllieBuilds/orgs","repos_url":"https://api.github.com/users/OllieBuilds/repos","events_url":"https://api.github.com/users/OllieBuilds/events{/privacy}","received_events_url":"https://api.github.com/users/OllieBuilds/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-05T18:18:10Z","updated_at":"2016-04-05T18:24:10Z","closed_at":null,"body":"So, I am able to make the board function properly on the website, but I can't seem to make the array update. I need this so that I can run winScenarios.\r\n\r\ngameplay.js code snippet below\r\n\r\n```js\r\n'use strict';\r\n\r\nlet currentBoard = [\r\n$('#square0').attr('class'),\r\n$('#square1').attr('class'),\r\n$('#square2').attr('class'),\r\n$('#square3').attr('class'),\r\n$('#square4').attr('class'),\r\n$('#square5').attr('class'),\r\n$('#square6').attr('class'),\r\n$('#square7').attr('class'),\r\n$('#square8').attr('class'),\r\n];\r\n\r\n\r\nlet numTurn = 0;\r\n\r\n\r\n$('td').click( function(){\r\n  if (numTurn % 2 === 0 && $(this).text() === '') {\r\n      $(this).removeClass('playertwo').addClass('playerone');\r\n      $(this).text('X');\r\n      numTurn += 1;\r\n    } else if (numTurn % 2 !== 0 && $(this).text() === ''){\r\n      $(this).removeClass('playerone').addClass('playertwo');\r\n      $(this).text('O');\r\n      numTurn += 1;\r\n    }\r\n    console.log(currentBoard);\r\n  });\r\n```\r\n\r\n\r\nI have tried many different methods for identifying array items... help please"},"comment":{"url":"https://api.github.com/repos/ga-wdi-boston/game-project/issues/comments/205930633","html_url":"https://github.com/ga-wdi-boston/game-project/issues/60#issuecomment-205930633","issue_url":"https://api.github.com/repos/ga-wdi-boston/game-project/issues/60","id":205930633,"user":{"login":"OllieBuilds","id":15033849,"avatar_url":"https://avatars.githubusercontent.com/u/15033849?v=3","gravatar_id":"","url":"https://api.github.com/users/OllieBuilds","html_url":"https://github.com/OllieBuilds","followers_url":"https://api.github.com/users/OllieBuilds/followers","following_url":"https://api.github.com/users/OllieBuilds/following{/other_user}","gists_url":"https://api.github.com/users/OllieBuilds/gists{/gist_id}","starred_url":"https://api.github.com/users/OllieBuilds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OllieBuilds/subscriptions","organizations_url":"https://api.github.com/users/OllieBuilds/orgs","repos_url":"https://api.github.com/users/OllieBuilds/repos","events_url":"https://api.github.com/users/OllieBuilds/events{/privacy}","received_events_url":"https://api.github.com/users/OllieBuilds/received_events","type":"User","site_admin":false},"created_at":"2016-04-05T18:24:10Z","updated_at":"2016-04-05T18:24:10Z","body":"...I think that is the problem... I can't seem to figure out 'how' to update it. I was trying to have the currentBoard array items be the defined by the td class, but I don't know how to have it scan/update this.\r\n"}}