{"action":"created","comment":{"url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/pulls/comments/75149180","id":75149180,"diff_hunk":"@@ -1,365 +1,319 @@\n-$(function(){\n-\tcurrentGame = '';\n-\tform = {\n-\t\tform1:{\n-\t\t\tname: '',\n-\t\t\tfirst: true,\n-\t\t\txo: 'x',\n-\t\t},\n-\t\tform2:{\n-\t\t\tname: '',\n-\t\t\tfirst: false,\n-\t\t\txo: 'o',\n-\t\t},\n-\t\tupdateForm: function(id) {\n-\t\t\tif (id == 'first' || id == 'second2') {\n-\t\t\t\tform.form1.first = true;\n-\t\t\t\tform.form2.first = false;\n-\t\t\t}\n-\t\t\telse if (id == 'second' || id == 'first2') {\n-\t\t\t\tform.form2.first = true;\n-\t\t\t\tform.form1.first = false;\n-\t\t\t}\n-\t\t\t\n-\t\t\telse if (id == 'x' || id == 'o2') {\n-\t\t\t\tform.form1.xo = 'x';\n-\t\t\t\tform.form2.xo = 'o';\n-\t\t\t}\n-\t\t\telse if (id == 'o' || id == 'x2') {\n-\t\t\t\tform.form2.xo = 'x';\n-\t\t\t\tform.form1.xo = 'o';\n-\t\t\t}\n-\t\t},\n-\t\tsetName: function(name1, name2) {\n-\t\t\tform.form1.name = name1;\n-\t\t\tform.form2.name = name2;\n-\t\t},\n-\t\treset: function() {\n-\t\t\tform.form1.first = true;\n-\t\t\tform.form2.first = false;\n-\t\t\tform.form1.xo = 'x';\n-\t\t\tform.form2.xo = 'o';\n-\t\t},\n-\t}\n+$(function() {\n+    currentGame = '';\n+    \n+    $('#playBtn').click(function() {\n+        $('.landing').hide();\n+        $('.playersInfo').show();\n+\t    activateTurn1();\n+\t    activateMark1();\n+    });\n \n-\t$('#playBtn').click(function() {\n-\t\t$('.landing').hide();\n-\t\t$('.playersInfo').show();\n-\t});\n+    $('.option2').click(function() {\n+        var id = this.id;\n+        $('.turn1').off('click');\n+        $('.mark1').off('click');\n+        $('.option2').css('background-color', '#ccff99');\n+        $('#' + id).css('background-color', '#99ff33');\n+        form.updateForm(id);\n+    });\n \n-\t$('#playPC').click(function() {\n-\t\t$('.landing').hide();\n-\t\t$('.playersInfo').show();\n-\t});\n+    $('.form').submit(function(e) {\n+        e.preventDefault();\n+        var name1 = $('input[name=name1]').val();\n+        var name2 = $('input[name=name2]').val();\n+        form.setName(name1, name2);\n+        $('.playersInfo').hide();\n+        $('.game').show();\n+        currentGame = newGame();\n+        updateTurn();\n+    });\n \n-\tactivateTurn1();\n-\tactivateMark1();\n+    $('#resetBtn').click(function() {\n+        form.reset();\n+        $('.turn1, .mark1, .option2').css('background-color', '#ccff99');\n+        $('.turn2').show();\n+        $('.mark2').show();\n+        $('.turn1').off('click');\n+        $('.mark1').off('click');\n+        activateTurn1();\n+        activateMark1();\n+    });\n \n-\t$('.option2').click(function() {\n-\t\tvar id = this.id;\n-\t\t$('.turn1').off('click');\n-\t\t$('.mark1').off('click');\n-\t\t$('.option2').css('background-color', '#ccff99');\n-\t\t$('#'+id).css('background-color', '#99ff33');\n-\t\tform.updateForm(id);\n-\t});\n-\t$('.form').submit(function(e){\n-\t\te.preventDefault();\n-\t\tvar name1 = $('input[name=name1]').val();\n-\t\tvar name2 = $('input[name=name2]').val();\n-\t\tform.setName(name1, name2);\n-\t\t$('.playersInfo').hide();\n-\t\t$('.game').show();\n-\t\tnewGame();\n-\t});\n-\t$('#resetBtn').click(function() {\n-\t\tform.reset();\n-\t\t$('.turn1, .mark1, .option2').css('background-color', '#ccff99');\n-\t\t$('.turn2').show();\n-\t\t$('.mark2').show();\n-\t\t$('.turn1').off('click');\n-\t\t$('.mark1').off('click');\n-\t\tactivateTurn1();\n-\t\tactivateMark1();\n-\t});\n-\n-\tfunction activateTurn1() {\n-\t\t$('.turn1').on('click', function() {\n-\t\t\tvar id = this.id;\n-\t\t\t$('.turn1, .mark1').css('background-color', '#ccff99');\n-\t\t\t$('#'+id).css('background-color', '#99ff33');\n-\t\t\t$('.turn2').hide();\n-\t\t\t$('.mark2').show();\n-\t\t\tform.updateForm(id);\n-\t\t});\n-\t}\n+    $('#newGameBtn').click(function() {\n+        currentGame = newGame();\n+        updateTurn();\n+    });\n+});\n \n-\tfunction activateMark1() {\n-\t\t$('.mark1').on('click', function() {\n-\t\t\tvar id = this.id;\n-\t\t\t$('.turn1, .mark1').css('background-color', '#ccff99');\n-\t\t\t$('#'+id).css('background-color', '#99ff33');\n-\t\t\t$('.mark2').hide();\n-\t\t\t$('.turn2').show();\n-\t\t\tform.updateForm(id);\n-\t\t});\n-\t}\n-\t\n-\t$('#newGameBtn').click(function() {\n-\t  \tnewGame();\n-\t });\n+function activateTurn1() {\n+    $('.turn1').on('click', function() {\n+        var id = this.id;\n+        $('.turn1, .mark1').css('background-color', '#ccff99');\n+        $('#' + id).css('background-color', '#99ff33');\n+        $('.turn2').hide();\n+        $('.mark2').show();\n+        form.updateForm(id);\n+    });\n+}\n \n-});\n+function activateMark1() {\n+    $('.mark1').on('click', function() {\n+        var id = this.id;\n+        $('.turn1, .mark1').css('background-color', '#ccff99');\n+        $('#' + id).css('background-color', '#99ff33');\n+        $('.mark2').hide();\n+        $('.turn2').show();\n+        form.updateForm(id);\n+    });\n+}\n \n function userSelects() {\n-\t$('.box').on('click', function() {\n-\t\tvar id = this.id;\n-\t\tvar xo = games[currentGame].moveMade(id);\n-\t\tupdateBoard(id, xo);\n-\t\tupdateTurn();\n-\t});\n+    $('.box').on('click', function() {\n+        var id = this.id;\n+        var xo = games[currentGame].moveMade(id);\n+        updateBoard(id, xo);\n+        updateTurn();\n+    });\n }\n \n function updateBoard(id, xo) {\n-\tif (xo == 'x'){\n-\t\tsetX(id);\n-\t}\n-\telse if (xo == 'o') {\n-\t\tsetO(id);\n-\t}\n+    if (xo == 'x') {\n+        setX(id);\n+    } else if (xo == 'o') {\n+        setO(id);\n+    }\n }\n \n function updateTurn() {\n-\tif (games[currentGame].winner == '') {\n-\t\tvar player = games[currentGame].turn;\n-\t\t$('#player').html(games[currentGame][player].name);\n-\t}\n-\telse if (games[currentGame].winner != '') {\n-\t\tdeactivateBoard();\n-\t\tupdateWinner();\n-\t}\n+    if (games[currentGame].winner == '') {\n+        var player = games[currentGame].turn;\n+        $('#player').html(games[currentGame][player].name);\n+    } else if (games[currentGame].winner == 'Tied') {\n+        deactivateBoard();\n+        $('.playerTurn').hide();\n+        $('.tied').show();\n+\n+    } else if (games[currentGame].winner != '') {\n+        deactivateBoard();\n+        updateWinner();\n+    }\n }\n \n function updateWinner() {\n-\tvar winner = games[currentGame].winner;\n-\t$('.playerTurn').hide();\n-\t$('.winner').show();\n-\t$('.winner #player').html(games[currentGame][winner].name);\n+    var winner = games[currentGame].winner;\n+    $('.playerTurn').hide();\n+    $('.winner').show();\n+    $('.winner #player').html(games[currentGame][winner].name);\n }\n \n function setX(id) {\n-\t$('#'+id).addClass('x');\n-\tdeactivateBox(id);\n+    $('#' + id).addClass('x');\n+    deactivateBox(id);\n }\n \n function setO(id) {\n-\t$('#'+id).addClass('o');\n-\tdeactivateBox(id);\n+    $('#' + id).addClass('o');\n+    deactivateBox(id);\n }\n \n function deactivateBox(id) {\n-\t$('#' +id).off('click');\n+    $('#' + id).off('click');\n }\n \n function deactivateBoard() {\n-\t$('.box').off('click');\n+    $('.box').off('click');\n }\n \n function clearBoard() {\n-\t$('.box').removeClass('x');\n-\t$('.box').removeClass('o');\n+    $('.box').removeClass('x');\n+    $('.box').removeClass('o');\n }\n \n function newGame() {\n-\t$('.playersInfo').hide();\n-\t$('.game').show();\n-\tclearBoard();\n-\t$('.box').off('click');\n-\tuserSelects();\n-\tgameName = \"Game\" + (games.count + 1);\n-\t\n-\tgames.new(gameName);\n-\tcurrentGame = gameName;\n-\t\t//add players info into newgame\n-\tif (form.form1.first) {\n-\t\tgames[gameName].addPlayers(form.form1.name, form.form1.xo, form.form2.name, form.form2.xo);\n-\t}\n-\telse if (form.form2.first) {\n-\t\tgames[gameName].addPlayers(form.form2.name, form.form2.xo, form.form1.name, form.form1.xo);\n-\t}\n-\t$('#winner').hide();\n-\t$('#player').show();\n-\tupdateTurn();\n+    $('.playersInfo').hide();\n+    $('.game').show();\n+    clearBoard();\n+    $('.box').off('click');\n+    userSelects();\n+    var gameName = \"Game\" + (games.count + 1);\n+\n+    games.new(gameName);\n+    games[gameName].initBoard();\n+\n+    if (form.form1.first) {\n+        games[gameName].addPlayers(form.form1.name, form.form1.xo, form.form2.name, form.form2.xo);\n+    } else if (form.form2.first) {\n+        games[gameName].addPlayers(form.form2.name, form.form2.xo, form.form1.name, form.form1.xo);\n+    }\n+\n+    $('.winner').hide();\n+    $('.tied').hide();\n+    $('.playerTurn').show();\n+    console.log(games);\n+    return gameName;\n }\n \n-Board = {\n-\tboxes: {\n-\t\tbox1: {\n-\t\t\tselected: false,\n-\t\t\tmarked: '',\n-\t\t}, \n-\t\tbox2: {\n-\t\t\tselected: false,\n-\t\t\tmarked: '',\n-\t\t}, \n-\t\tbox3: {\n-\t\t\tselected: false,\n-\t\t\tmarked: '',\n-\t\t}, \n-\t\tbox4: {\n-\t\t\tselected: false,\n-\t\t\tmarked: '',\n-\t\t}, \n-\t\tbox5: {\n-\t\t\tselected: false,\n-\t\t\tmarked: '',\n-\t\t}, \n-\t\tbox6: {\n-\t\t\tselected: false,\n-\t\t\tmarked: '',\n-\t\t}, \n-\t\tbox7: {\n-\t\t\tselected: false,\n-\t\t\tmarked: '',\n-\t\t}, \n-\t\tbox8: {\n-\t\t\tselected: false,\n-\t\t\tmarked: '',\n-\t\t}, \n-\t\tbox9: {\n-\t\t\tselected: false,\n-\t\t\tmarked: '',\n-\t\t} \n-\t},\n-\tmark: function(id, xo) {\n-\t\tthis.boxes[id].selected = true;\n-\t\tthis.boxes[id].marked = xo;\n-\t},\n-\tclear: function() {\n-\t\tfor (var box in this.boxes) {\n-\t\t\tthis.boxes[box].selected = false;\n-\t\t\tthis.boxes[box].marked = '';\n-\t\t}\n-\t}\n+form = {\n+    form1: {\n+        name: '',\n+        first: true,\n+        xo: 'x',\n+    },\n+    form2: {\n+        name: '',\n+        first: false,\n+        xo: 'o',\n+    },\n+    updateForm: function(id) {\n+        if (id == 'first' || id == 'second2') {\n+            form.form1.first = true;\n+            form.form2.first = false;\n+        } else if (id == 'second' || id == 'first2') {\n+            form.form2.first = true;\n+            form.form1.first = false;\n+        } else if (id == 'x' || id == 'o2') {\n+            form.form1.xo = 'x';\n+            form.form2.xo = 'o';\n+        } else if (id == 'o' || id == 'x2') {\n+            form.form2.xo = 'x';\n+            form.form1.xo = 'o';\n+        }\n+    },\n+    setName: function(name1, name2) {\n+        form.form1.name = name1;\n+        form.form2.name = name2;\n+    },\n+    reset: function() {\n+        form.form1.first = true;\n+        form.form2.first = false;\n+        form.form1.xo = 'x';\n+        form.form2.xo = 'o';\n+    },\n }\n \n Player = {\n-\tname: '',\n-\txo: '',\n-\tturn: false,\n-\twonLostTie: '',\n-\tsetName: function(nm) {\n-\t\tthis.name = nm;\n-\t},\n-\tpickXO: function(xo) {\n-\t\tthis.xo = xo;\n-\t},\n-\tyourTurn: function() {\n-\t\tthis.turn = true;\n-\t},\n+    name: '',\n+    xo: '',\n+    turn: false,\n+    wonLostTie: '',\n+    setName: function(nm) {\n+        this.name = nm;\n+    },\n+    pickXO: function(xo) {\n+        this.xo = xo;\n+    },\n+    yourTurn: function() {\n+        this.turn = true;\n+    },\n }\n \n Game = {\n-\tmoveCount: 0,\n-\tplayer1: Object.create(Player), \n-\tplayer2: Object.create(Player),\n-\tturn: 'player1',\n-\tboard: Object.create(Board),\n-\twinner: '',\n-\tplayer1Mvs: [],\n-\tplayer2Mvs: [],\n-\taddPlayers: function(player1Name, player1XO, player2Name, player2XO) {\n-\t\t\tthis.endTurn();\n-\t\t\tthis.player1.setName(player1Name);\n-\t\t\tthis.player1.pickXO(player1XO);\n-\t\t\tthis.player1.yourTurn();\n-\t\t\tthis.player2.setName(player2Name);\n-\t\t\tthis.player2.pickXO(player2XO);\n-\t},\n-\tchangeTurn: function () {\n-\t\tif (this.turn == 'player1') {\n-\t\t\tthis.player1.turn = false;\n-\t\t\tthis.player2.turn = true;\n-\t\t\tthis.turn = 'player2';\n-\t\t}\n-\t\telse if (this.turn == 'player2') {\n-\t\t\tthis.player2.turn = false;\n-\t\t\tthis.player1.turn = true;\n-\t\t\tthis.turn = 'player1';\n-\t\t}\n-\t},\n-\tendTurn: function () {\n-\t\tif (this.turn == 'player1') {\n-\t\t\tthis.player1.wonLostTie = 'won';\n-\t\t\tthis.player2.wonLostTie = 'lost';\n-\t\t}\n-\t\telse if (this.turn == 'player2') {\n-\t\t\tthis.player2.wonLostTie = 'won';\n-\t\t\tthis.player1.wonLostTie = 'lost';\n-\t\t}\n-\t\tthis.p1Turn = false;\n-\t\tthis.p2Turn = false;\n-\t},\n-\twinnerFound: function() {\n-\t\tif (this.board.boxes.box1.marked != '' && this.board.boxes.box1.marked == this.board.boxes.box2.marked && this.board.boxes.box1.marked == this.board.boxes.box3.marked)  {\n-\t\t\treturn true;\n-\t\t} \n-\t\telse if (this.board.boxes.box4.marked != '' && this.board.boxes.box4.marked == this.board.boxes.box5.marked && this.board.boxes.box4.marked == this.board.boxes.box6.marked)  {\n-\t\t\treturn true;\n-\t\t}  \n-\t\telse if (this.board.boxes.box7.marked != '' && this.board.boxes.box7.marked == this.board.boxes.box8.marked && this.board.boxes.box7.marked == this.board.boxes.box9.marked)  {\n-\t\t\treturn true;\n-\t\t} \n-\t\telse if (this.board.boxes.box1.marked != '' && this.board.boxes.box1.marked == this.board.boxes.box4.marked && this.board.boxes.box1.marked == this.board.boxes.box7.marked)  {\n-\t\t\treturn true;\n-\t\t} \n-\t\telse if (this.board.boxes.box2.marked != '' && this.board.boxes.box2.marked == this.board.boxes.box5.marked && this.board.boxes.box5.marked == this.board.boxes.box8.marked)  {\n-\t\t\treturn true;\n-\t\t} \n-\t\telse if (this.board.boxes.box3.marked != '' && this.board.boxes.box3.marked == this.board.boxes.box6.marked && this.board.boxes.box3.marked == this.board.boxes.box9.marked)  {\n-\t\t\treturn true;\n-\t\t} \n-\t\telse if (this.board.boxes.box1.marked != '' && this.board.boxes.box1.marked == this.board.boxes.box5.marked && this.board.boxes.box1.marked == this.board.boxes.box9.marked)  {\n-\t\t\treturn true;\n-\t\t} \n-\t\telse if (this.board.boxes.box3.marked != '' && this.board.boxes.box3.marked == this.board.boxes.box5.marked && this.board.boxes.box3.marked == this.board.boxes.box9.marked)  {\n-\t\t\treturn true;\n-\t\t} \n-\t\telse {\n-\t\t\treturn false;\n-\t\t}\t\n-\t},\n-\tmoveMade: function(id) {\n-\t\tif (this[this.turn].turn) {\n-\t\t\tthis[this.turn + 'Mvs'].push(id);\n-\t\t\tthis.board.mark(id, this[this.turn].xo);\n-\t\t\tthis.moveCount++;\n-\t\t\tif (this.moveCount >= 5) {\n-\t\t\t\tif (this.winnerFound()) {\n-\t\t\t\t\tthis.winner = this.turn;\n-\t\t\t\t\tthis.endTurn();\n-\t\t\t\t}\n-\t\t\t}\n-\t\t\tvar temp = this[this.turn].xo;\n-\t\t\tthis.changeTurn();\n-\t\t\treturn temp;\n-\t\t}\n-\t\treturn '';\n-\t},\n+    moveCount: 0,\n+    player1: Object.create(Player),\n+    player2: Object.create(Player),\n+    turn: 'player1',\n+    winner: '',\n+    board: {\n+    \tboxes: {}\n+    },\n+    initBoard: function() {\n+    \tfor (var i = 1; i <=9; i++) {\n+    \t\tvar box = 'box' + i;\n+\t    \tthis.board.boxes[box] = {};\n+\t    \tthis.board.boxes[box].selected = false;\n+\t    \tthis.board.boxes[box].marked = i;\n+\t    }\n+    },\n+    markBoard: function(id, xo) {\n+        this.board.boxes[id].selected = true;\n+        this.board.boxes[id].marked = xo;\n+    },\n+    addPlayers: function(player1Name, player1XO, player2Name, player2XO) {\n+        this.endTurn();\n+        this.player1.setName(player1Name);\n+        this.player1.pickXO(player1XO);\n+        this.player1.yourTurn();\n+        this.player2.setName(player2Name);\n+        this.player2.pickXO(player2XO);\n+    },\n+    changeTurn: function() {\n+        if (this.turn == 'player1') {\n+            this.player1.turn = false;\n+            this.player2.turn = true;\n+            this.turn = 'player2';\n+        } else if (this.turn == 'player2') {\n+            this.player2.turn = false;\n+            this.player1.turn = true;\n+            this.turn = 'player1';\n+        }\n+    },\n+    endTurn: function() {\n+        if (this.turn == 'player1') {\n+            this.player1.wonLostTie = 'won';\n+            this.player2.wonLostTie = 'lost';\n+        } else if (this.turn == 'player2') {\n+            this.player2.wonLostTie = 'won';\n+            this.player1.wonLostTie = 'lost';\n+        }\n+       this.player1.turn = false;\n+       this.player2.turn = false;\n+    },\n+    winnerFound: function() {\n+  \t\tconsole.log(this);     \n+        if (this.board.boxes.box1.selected && this.board.boxes.box1.marked == this.board.boxes.box2.marked && this.board.boxes.box1.marked == this.board.boxes.box3.marked) {","path":"js/app.js","position":568,"original_position":568,"commit_id":"3cff137ea32f583be9f891716282776bb3e1372c","original_commit_id":"3cff137ea32f583be9f891716282776bb3e1372c","user":{"login":"aric87","id":9463572,"avatar_url":"https://avatars.githubusercontent.com/u/9463572?v=3","gravatar_id":"","url":"https://api.github.com/users/aric87","html_url":"https://github.com/aric87","followers_url":"https://api.github.com/users/aric87/followers","following_url":"https://api.github.com/users/aric87/following{/other_user}","gists_url":"https://api.github.com/users/aric87/gists{/gist_id}","starred_url":"https://api.github.com/users/aric87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aric87/subscriptions","organizations_url":"https://api.github.com/users/aric87/orgs","repos_url":"https://api.github.com/users/aric87/repos","events_url":"https://api.github.com/users/aric87/events{/privacy}","received_events_url":"https://api.github.com/users/aric87/received_events","type":"User","site_admin":false},"body":"this is really hard to follow. consider storing this.board.boxes into a variable, so you can reference it like \r\n    \r\n    var boxes = this.board.boxes;\r\n    boxes.box4.selected \r\n\r\nThat will make your statements more terse, easier to update, and easier to follow. \r\n","created_at":"2016-08-17T15:46:18Z","updated_at":"2016-08-17T15:46:18Z","html_url":"https://github.com/AWAlemu/tic-tac-toe/pull/1#discussion_r75149180","pull_request_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/AWAlemu/tic-tac-toe/pulls/comments/75149180"},"html":{"href":"https://github.com/AWAlemu/tic-tac-toe/pull/1#discussion_r75149180"},"pull_request":{"href":"https://api.github.com/repos/AWAlemu/tic-tac-toe/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/pulls/1","id":81574293,"html_url":"https://github.com/AWAlemu/tic-tac-toe/pull/1","diff_url":"https://github.com/AWAlemu/tic-tac-toe/pull/1.diff","patch_url":"https://github.com/AWAlemu/tic-tac-toe/pull/1.patch","issue_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/issues/1","number":1,"state":"open","locked":false,"title":"Staging - code review","user":{"login":"AWAlemu","id":15066043,"avatar_url":"https://avatars.githubusercontent.com/u/15066043?v=3","gravatar_id":"","url":"https://api.github.com/users/AWAlemu","html_url":"https://github.com/AWAlemu","followers_url":"https://api.github.com/users/AWAlemu/followers","following_url":"https://api.github.com/users/AWAlemu/following{/other_user}","gists_url":"https://api.github.com/users/AWAlemu/gists{/gist_id}","starred_url":"https://api.github.com/users/AWAlemu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AWAlemu/subscriptions","organizations_url":"https://api.github.com/users/AWAlemu/orgs","repos_url":"https://api.github.com/users/AWAlemu/repos","events_url":"https://api.github.com/users/AWAlemu/events{/privacy}","received_events_url":"https://api.github.com/users/AWAlemu/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-17T02:11:44Z","updated_at":"2016-08-17T15:46:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"34c84bc7883895f953a888a91d8f42bf7826ae8b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/pulls/1/commits","review_comments_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/pulls/1/comments","review_comment_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/issues/1/comments","statuses_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/statuses/3cff137ea32f583be9f891716282776bb3e1372c","head":{"label":"AWAlemu:staging","ref":"staging","sha":"3cff137ea32f583be9f891716282776bb3e1372c","user":{"login":"AWAlemu","id":15066043,"avatar_url":"https://avatars.githubusercontent.com/u/15066043?v=3","gravatar_id":"","url":"https://api.github.com/users/AWAlemu","html_url":"https://github.com/AWAlemu","followers_url":"https://api.github.com/users/AWAlemu/followers","following_url":"https://api.github.com/users/AWAlemu/following{/other_user}","gists_url":"https://api.github.com/users/AWAlemu/gists{/gist_id}","starred_url":"https://api.github.com/users/AWAlemu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AWAlemu/subscriptions","organizations_url":"https://api.github.com/users/AWAlemu/orgs","repos_url":"https://api.github.com/users/AWAlemu/repos","events_url":"https://api.github.com/users/AWAlemu/events{/privacy}","received_events_url":"https://api.github.com/users/AWAlemu/received_events","type":"User","site_admin":false},"repo":{"id":64078837,"name":"tic-tac-toe","full_name":"AWAlemu/tic-tac-toe","owner":{"login":"AWAlemu","id":15066043,"avatar_url":"https://avatars.githubusercontent.com/u/15066043?v=3","gravatar_id":"","url":"https://api.github.com/users/AWAlemu","html_url":"https://github.com/AWAlemu","followers_url":"https://api.github.com/users/AWAlemu/followers","following_url":"https://api.github.com/users/AWAlemu/following{/other_user}","gists_url":"https://api.github.com/users/AWAlemu/gists{/gist_id}","starred_url":"https://api.github.com/users/AWAlemu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AWAlemu/subscriptions","organizations_url":"https://api.github.com/users/AWAlemu/orgs","repos_url":"https://api.github.com/users/AWAlemu/repos","events_url":"https://api.github.com/users/AWAlemu/events{/privacy}","received_events_url":"https://api.github.com/users/AWAlemu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AWAlemu/tic-tac-toe","description":null,"fork":false,"url":"https://api.github.com/repos/AWAlemu/tic-tac-toe","forks_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/forks","keys_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/teams","hooks_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/hooks","issue_events_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/issues/events{/number}","events_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/events","assignees_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/assignees{/user}","branches_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/branches{/branch}","tags_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/tags","blobs_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/git/refs{/sha}","trees_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/statuses/{sha}","languages_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/languages","stargazers_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/stargazers","contributors_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/contributors","subscribers_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/subscribers","subscription_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/subscription","commits_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/commits{/sha}","git_commits_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/git/commits{/sha}","comments_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/comments{/number}","issue_comment_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/issues/comments{/number}","contents_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/contents/{+path}","compare_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/merges","archive_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/downloads","issues_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/issues{/number}","pulls_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/pulls{/number}","milestones_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/milestones{/number}","notifications_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/labels{/name}","releases_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/releases{/id}","deployments_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/deployments","created_at":"2016-07-24T18:08:09Z","updated_at":"2016-07-24T18:08:59Z","pushed_at":"2016-08-17T02:20:15Z","git_url":"git://github.com/AWAlemu/tic-tac-toe.git","ssh_url":"git@github.com:AWAlemu/tic-tac-toe.git","clone_url":"https://github.com/AWAlemu/tic-tac-toe.git","svn_url":"https://github.com/AWAlemu/tic-tac-toe","homepage":null,"size":9,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"AWAlemu:master","ref":"master","sha":"a62a31006bc4d6aeb56ed74ec14ca7514382645c","user":{"login":"AWAlemu","id":15066043,"avatar_url":"https://avatars.githubusercontent.com/u/15066043?v=3","gravatar_id":"","url":"https://api.github.com/users/AWAlemu","html_url":"https://github.com/AWAlemu","followers_url":"https://api.github.com/users/AWAlemu/followers","following_url":"https://api.github.com/users/AWAlemu/following{/other_user}","gists_url":"https://api.github.com/users/AWAlemu/gists{/gist_id}","starred_url":"https://api.github.com/users/AWAlemu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AWAlemu/subscriptions","organizations_url":"https://api.github.com/users/AWAlemu/orgs","repos_url":"https://api.github.com/users/AWAlemu/repos","events_url":"https://api.github.com/users/AWAlemu/events{/privacy}","received_events_url":"https://api.github.com/users/AWAlemu/received_events","type":"User","site_admin":false},"repo":{"id":64078837,"name":"tic-tac-toe","full_name":"AWAlemu/tic-tac-toe","owner":{"login":"AWAlemu","id":15066043,"avatar_url":"https://avatars.githubusercontent.com/u/15066043?v=3","gravatar_id":"","url":"https://api.github.com/users/AWAlemu","html_url":"https://github.com/AWAlemu","followers_url":"https://api.github.com/users/AWAlemu/followers","following_url":"https://api.github.com/users/AWAlemu/following{/other_user}","gists_url":"https://api.github.com/users/AWAlemu/gists{/gist_id}","starred_url":"https://api.github.com/users/AWAlemu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AWAlemu/subscriptions","organizations_url":"https://api.github.com/users/AWAlemu/orgs","repos_url":"https://api.github.com/users/AWAlemu/repos","events_url":"https://api.github.com/users/AWAlemu/events{/privacy}","received_events_url":"https://api.github.com/users/AWAlemu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AWAlemu/tic-tac-toe","description":null,"fork":false,"url":"https://api.github.com/repos/AWAlemu/tic-tac-toe","forks_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/forks","keys_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/teams","hooks_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/hooks","issue_events_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/issues/events{/number}","events_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/events","assignees_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/assignees{/user}","branches_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/branches{/branch}","tags_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/tags","blobs_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/git/refs{/sha}","trees_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/statuses/{sha}","languages_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/languages","stargazers_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/stargazers","contributors_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/contributors","subscribers_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/subscribers","subscription_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/subscription","commits_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/commits{/sha}","git_commits_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/git/commits{/sha}","comments_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/comments{/number}","issue_comment_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/issues/comments{/number}","contents_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/contents/{+path}","compare_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/merges","archive_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/downloads","issues_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/issues{/number}","pulls_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/pulls{/number}","milestones_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/milestones{/number}","notifications_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/labels{/name}","releases_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/releases{/id}","deployments_url":"https://api.github.com/repos/AWAlemu/tic-tac-toe/deployments","created_at":"2016-07-24T18:08:09Z","updated_at":"2016-07-24T18:08:59Z","pushed_at":"2016-08-17T02:20:15Z","git_url":"git://github.com/AWAlemu/tic-tac-toe.git","ssh_url":"git@github.com:AWAlemu/tic-tac-toe.git","clone_url":"https://github.com/AWAlemu/tic-tac-toe.git","svn_url":"https://github.com/AWAlemu/tic-tac-toe","homepage":null,"size":9,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AWAlemu/tic-tac-toe/pulls/1"},"html":{"href":"https://github.com/AWAlemu/tic-tac-toe/pull/1"},"issue":{"href":"https://api.github.com/repos/AWAlemu/tic-tac-toe/issues/1"},"comments":{"href":"https://api.github.com/repos/AWAlemu/tic-tac-toe/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/AWAlemu/tic-tac-toe/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/AWAlemu/tic-tac-toe/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AWAlemu/tic-tac-toe/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/AWAlemu/tic-tac-toe/statuses/3cff137ea32f583be9f891716282776bb3e1372c"}}}}
{"actor":{"display_login":"aric87"}}