{"action":"created","issue":{"url":"https://api.github.com/repos/TeamStoic/StoicChess/issues/39","repository_url":"https://api.github.com/repos/TeamStoic/StoicChess","labels_url":"https://api.github.com/repos/TeamStoic/StoicChess/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/TeamStoic/StoicChess/issues/39/comments","events_url":"https://api.github.com/repos/TeamStoic/StoicChess/issues/39/events","html_url":"https://github.com/TeamStoic/StoicChess/pull/39","id":166705235,"number":39,"title":"Draw pieces on board","user":{"login":"aleksgorbenko","id":14005824,"avatar_url":"https://avatars.githubusercontent.com/u/14005824?v=3","gravatar_id":"","url":"https://api.github.com/users/aleksgorbenko","html_url":"https://github.com/aleksgorbenko","followers_url":"https://api.github.com/users/aleksgorbenko/followers","following_url":"https://api.github.com/users/aleksgorbenko/following{/other_user}","gists_url":"https://api.github.com/users/aleksgorbenko/gists{/gist_id}","starred_url":"https://api.github.com/users/aleksgorbenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aleksgorbenko/subscriptions","organizations_url":"https://api.github.com/users/aleksgorbenko/orgs","repos_url":"https://api.github.com/users/aleksgorbenko/repos","events_url":"https://api.github.com/users/aleksgorbenko/events{/privacy}","received_events_url":"https://api.github.com/users/aleksgorbenko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-20T23:25:05Z","updated_at":"2016-07-21T13:51:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/TeamStoic/StoicChess/pulls/39","html_url":"https://github.com/TeamStoic/StoicChess/pull/39","diff_url":"https://github.com/TeamStoic/StoicChess/pull/39.diff","patch_url":"https://github.com/TeamStoic/StoicChess/pull/39.patch"},"body":"All pieces are now drawn on the chess board. I added code to the same JS script that was used to created the board itself. Two loops to add the pawns and several 'append' jQuery methods for all other pieces. Data attributes were used to select the correct HTML elements.\r\n\r\n- white are on top, black on the bottom\r\n- added some styles to the application.scss\r\n\r\nRight now it resembles the populate method in our Game model.\r\n\r\n_Side note: SCSS for the chessboard will be moved to the separate file with the next drag_drop_ajax PR._ "},"comment":{"url":"https://api.github.com/repos/TeamStoic/StoicChess/issues/comments/234259373","html_url":"https://github.com/TeamStoic/StoicChess/pull/39#issuecomment-234259373","issue_url":"https://api.github.com/repos/TeamStoic/StoicChess/issues/39","id":234259373,"user":{"login":"chadbaum","id":4358977,"avatar_url":"https://avatars.githubusercontent.com/u/4358977?v=3","gravatar_id":"","url":"https://api.github.com/users/chadbaum","html_url":"https://github.com/chadbaum","followers_url":"https://api.github.com/users/chadbaum/followers","following_url":"https://api.github.com/users/chadbaum/following{/other_user}","gists_url":"https://api.github.com/users/chadbaum/gists{/gist_id}","starred_url":"https://api.github.com/users/chadbaum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chadbaum/subscriptions","organizations_url":"https://api.github.com/users/chadbaum/orgs","repos_url":"https://api.github.com/users/chadbaum/repos","events_url":"https://api.github.com/users/chadbaum/events{/privacy}","received_events_url":"https://api.github.com/users/chadbaum/received_events","type":"User","site_admin":false},"created_at":"2016-07-21T13:51:53Z","updated_at":"2016-07-21T13:51:53Z","body":"We'll need to check if the active_user is a player in the game, and then simply draw the chess board in a way that the player's pieces are on the bottom of the board, regardless of whether they are the black or white player."}}
{"actor":{"display_login":"chadbaum"}}