{"action":"created","issue":{"url":"https://api.github.com/repos/ga-wdi-boston/game-project/issues/8","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/8/labels{/name}","comments_url":"https://api.github.com/repos/ga-wdi-boston/game-project/issues/8/comments","events_url":"https://api.github.com/repos/ga-wdi-boston/game-project/issues/8/events","html_url":"https://github.com/ga-wdi-boston/game-project/issues/8","id":130808810,"number":8,"title":"Adding player moves into an array","user":{"login":"jdamiron","id":16493127,"avatar_url":"https://avatars.githubusercontent.com/u/16493127?v=3","gravatar_id":"","url":"https://api.github.com/users/jdamiron","html_url":"https://github.com/jdamiron","followers_url":"https://api.github.com/users/jdamiron/followers","following_url":"https://api.github.com/users/jdamiron/following{/other_user}","gists_url":"https://api.github.com/users/jdamiron/gists{/gist_id}","starred_url":"https://api.github.com/users/jdamiron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdamiron/subscriptions","organizations_url":"https://api.github.com/users/jdamiron/orgs","repos_url":"https://api.github.com/users/jdamiron/repos","events_url":"https://api.github.com/users/jdamiron/events{/privacy}","received_events_url":"https://api.github.com/users/jdamiron/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-02-02T20:32:55Z","updated_at":"2016-02-02T21:04:19Z","closed_at":null,"body":"I am using this function:\r\n```\r\nlet player1Move = function () {\r\n  $('.gameboard').children().on('click', function () {\r\n  $(this).text('X');\r\n};\r\n\r\nto represent the first players move,\r\n\r\nand this function:\r\n\r\nlet player1moves = []\r\nfunction (player1moves) {\r\n  $(.gameboard.box).push(player1move);\r\n}\r\n```\r\nto store each move into an array in order to match an array in the winning conditions.\r\n\r\nFirst issue is the player1move function breaks my game.\r\nSecond issue is a player will not reach a winning combination in the first 3 moves each game, meaning they could gather an array of 5 numbers total and that would never be equal to my winning combo arrays of only 3 numbers total.\r\n\r\nAny suggestions on syntax or if i'm not thinking through the functions properly would be greatly appreciated!"},"comment":{"url":"https://api.github.com/repos/ga-wdi-boston/game-project/issues/comments/178817983","html_url":"https://github.com/ga-wdi-boston/game-project/issues/8#issuecomment-178817983","issue_url":"https://api.github.com/repos/ga-wdi-boston/game-project/issues/8","id":178817983,"user":{"login":"gaand","id":10064043,"avatar_url":"https://avatars.githubusercontent.com/u/10064043?v=3","gravatar_id":"","url":"https://api.github.com/users/gaand","html_url":"https://github.com/gaand","followers_url":"https://api.github.com/users/gaand/followers","following_url":"https://api.github.com/users/gaand/following{/other_user}","gists_url":"https://api.github.com/users/gaand/gists{/gist_id}","starred_url":"https://api.github.com/users/gaand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaand/subscriptions","organizations_url":"https://api.github.com/users/gaand/orgs","repos_url":"https://api.github.com/users/gaand/repos","events_url":"https://api.github.com/users/gaand/events{/privacy}","received_events_url":"https://api.github.com/users/gaand/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T21:04:19Z","updated_at":"2016-02-02T21:04:19Z","body":"This appears to be missing quotes:\r\n```js\r\n$(.gameboard.box).push(player1move);\r\n```\r\n"}}