{"action":"created","comment":{"url":"https://api.github.com/repos/jacklynhma/checkers/pulls/comments/131218767","pull_request_review_id":54176916,"id":131218767,"diff_hunk":"@@ -18,283 +18,283 @@\n       # see if you can see first game on the page\n     end\n   end\n-\n-\n-  describe \"GET#edit\" do\n-    # return a list of games\n-    it \"require login\" do\n-      get :edit, params: {id: first_game.id}\n-\n-      expect(response).to redirect_to user_session_path\n-      # see if you can see first game on the page\n-    end\n-\n-    it \"allow to edit game since user is logged in\" do\n-      sign_in first_user\n-      get :edit, params: {id: first_game.id}\n-\n-      expect(response.status).to eq 200\n-      # see if you can see first game on the page\n-    end\n-  end\n-\n-  describe \"GET#show\" do\n-    # return a list of games\n-    # need to have a user to sign in\n-    # sign_in_as etc etc\n-    it \"show the game\" do\n-      get :show, params: {id: first_game.id}\n-\n-      expect(response).to render_template(\"show\")\n-      expect(response.status).to eq 200\n-      expect(first_user.gameplayers.find_by(game_id: first_game.id).team).to eq(\"black\")\n-    end\n-  end\n-\n-  describe \"PUT#update\" do\n-    it \"update game with new move \" do\n-      sign_in first_user\n-\n-      put :update, params: {id: first_game.id, coordinate: {from: \"[2,1]\", to: \"[3,2]\"}}\n-\n-      expect(response).to redirect_to(first_game)\n-      expect(first_game.reload.state_of_piece[3][2]).to eq \"B\"\n-    end\n-    it \"fail to update\" do\n-      sign_in first_user\n-      put :update, params: {id: first_game.id, coordinate: {from: \"[1,0]\", to: \"[2,2]\"}}\n-\n-      expect(response.status).to eq 302\n-      expect(first_game.reload.state_of_piece[2][2]).to eq nil\n-    end\n-    context \"must eat a piece\" do\n-      let!(:second_match) { Gameplayer.create(team: \"black\", user_id: first_user.id, game_id: second_game.id )}\n-      let!(:second_game) {Game.create({name: \"testing\", state_of_piece:\n-        [[nil, \"B\", nil, \"B\", nil, \"B\", nil, \"B\"],\n-        [\"B\", nil, \"B\", nil, \"B\", nil , \"B\", nil],\n-        [nil, nil, nil, \"B\", nil, \"B\", nil, \"B\"],\n-        [nil, nil, \"B\", nil, nil, nil, nil, nil],\n-        [nil, nil, nil, \"R\", nil, nil, nil, nil],\n-        [\"R\", nil, \"R\", nil, nil, nil, \"R\", nil],\n-        [nil, \"R\", nil, \"R\", nil, \"R\", nil, \"R\"],\n-        [\"R\", nil, \"R\", nil, \"R\", nil, \"R\", nil]]\n-        })\n-      }\n-      it \"should fail to update\" do\n-        sign_in first_user\n-        put :update, params: {id: second_game.id, coordinate: {from: \"[3,2]\", to: \"[4,1]\"}}\n-\n-        expect(response).to redirect_to(second_game)\n-        expect(second_game.reload.state_of_piece[4][1]).to eq nil\n-        expect(second_game.reload.state_of_piece[3][2]).to eq \"B\"\n-      end\n-    end\n-    context \"must eat a piece\" do\n-      let!(:third_match) { Gameplayer.create(team: \"black\", user_id: first_user.id, game_id: third_game.id )}\n-      let!(:third_game) {Game.create({name: \"testing\", state_of_piece:\n-        [[nil, \"B\", nil, \"B\", nil, \"B\", nil, \"B\"],\n-        [\"B\", nil, \"B\", nil, \"B\", nil , \"B\", nil],\n-        [nil, nil, nil, \"B\", nil, \"B\", nil, \"B\"],\n-        [nil, nil, \"B\", nil, nil, nil, nil, nil],\n-        [nil, nil, nil, \"R\", nil, nil, nil, nil],\n-        [\"R\", nil, \"R\", nil, nil, nil, \"R\", nil],\n-        [nil, \"R\", nil, \"R\", nil, \"R\", nil, \"R\"],\n-        [\"R\", nil, \"R\", nil, \"R\", nil, \"R\", nil]]\n-        })\n-      }\n-      it \"should eat the opposing piece next to it\" do\n-        sign_in first_user\n-        put :update, params: {id: third_game.id, coordinate: {from: \"[3,2]\", to: \"[5,4]\"}}\n-\n-        expect(response).to redirect_to(third_game)\n-        expect(third_game.reload.state_of_piece[3][2]).to eq nil\n-        expect(third_game.reload.state_of_piece[5][4]).to eq \"B\"\n-        expect(third_game.reload.state_of_piece[4][3]).to eq nil\n-      end\n-    end\n-    context \"R piece should not be forced to eat B piece since space after jump is not nil\" do\n-      let!(:third_match) { Gameplayer.create(team: \"red\", user_id: first_user.id, game_id: third_game.id )}\n-      let!(:third_game) {Game.create({name: \"testing\", state_of_piece:\n-        [[nil, \"B\", nil, \"B\", nil, \"B\", nil, \"B\"],\n-        [\"B\", nil, \"B\", nil, \"B\", nil , \"B\", nil],\n-        [nil, \"B\", nil, nil, nil, \"B\", nil, nil],\n-        [nil, nil, nil, nil, \"B\", nil, \"B\", nil],\n-        [nil, nil, nil, \"R\", nil, nil, nil, nil],\n-        [\"R\", nil, \"R\", nil, nil, nil, \"R\", nil],\n-        [nil, \"R\", nil, \"R\", nil, \"R\", nil, \"R\"],\n-        [\"R\", nil, \"R\", nil, \"R\", nil, \"R\", nil]]\n-        })\n-      }\n-      it \"all the piece should remain the same\" do\n-        sign_in first_user\n-        put :update, params: {id: third_game.id, coordinate: {from: \"[4,3]\", to: \"[2,5]\"}}\n-\n-        expect(response).to redirect_to(third_game)\n-        expect(third_game.reload.state_of_piece[4][3]).to eq \"R\"\n-        expect(third_game.reload.state_of_piece[2][5]).to eq \"B\"\n-        expect(third_game.reload.state_of_piece[3][4]).to eq \"B\"\n-      end\n-    end\n-    context \"R piece should allowed to move piece to the left\" do\n-      let!(:third_match) { Gameplayer.create(team: \"red\", user_id: first_user.id, game_id: third_game.id )}\n-      let!(:third_game) {Game.create({name: \"testing\", state_of_piece:\n-        [[nil, \"B\", nil, \"B\", nil, \"B\", nil, \"B\"],\n-        [\"B\", nil, \"B\", nil, \"B\", nil , \"B\", nil],\n-        [nil, \"B\", nil, nil, nil, \"B\", nil, nil],\n-        [nil, nil, nil, nil, \"B\", nil, \"B\", nil],\n-        [nil, nil, nil, \"R\", nil, nil, nil, nil],\n-        [\"R\", nil, \"R\", nil, nil, nil, \"R\", nil],\n-        [nil, \"R\", nil, \"R\", nil, \"R\", nil, \"R\"],\n-        [\"R\", nil, \"R\", nil, \"R\", nil, \"R\", nil]]\n-        })\n-      }\n-      it \"R is allowed to move to the left\" do\n-        sign_in first_user\n-        put :update, params: {id: third_game.id, coordinate: {from: \"[4,3]\", to: \"[3,2]\"}}\n-\n-        expect(response).to redirect_to(third_game)\n-        expect(third_game.reload.state_of_piece[4][3]).to eq nil\n-        expect(third_game.reload.state_of_piece[3][2]).to eq \"R\"\n-      end\n-    end\n-    context \"R piece can jump twice if there is an opposing piece next to it and there is an empty space\" do\n-      let!(:third_match) { Gameplayer.create(team: \"red\", user_id: first_user.id, game_id: third_game.id )}\n-      let!(:third_game) {Game.create({name: \"testing\", turn: 2, state_of_piece:\n-        [[nil, \"B\", nil, nil, nil, \"B\", nil, \"B\"],\n-        [\"B\", nil, \"B\", nil, \"B\", nil , \"B\", nil],\n-        [nil, nil, nil, nil, nil, \"B\", nil, nil],\n-        [nil, nil, \"B\", nil, \"R\", nil, \"B\", nil],\n-        [nil, \"R\", nil, \"R\", nil, nil, nil, nil],\n-        [\"R\", nil, nil, nil, nil, nil, nil, nil],\n-        [nil, \"R\", nil, \"R\", nil, \"R\", nil, \"R\"],\n-        [\"R\", nil, \"R\", nil, \"R\", nil, \"R\", nil]]\n-        })\n-      }\n-      it \"there should be two black piece eatten\" do\n-        sign_in first_user\n-        put :update, params: {id: third_game.id, coordinate: {from: \"[4,3]\", to: \"[2,1]\"}}\n-        expect(response).to redirect_to(third_game)\n-\n-        expect(third_game.reload.state_of_piece[2][1]).to eq \"R\"\n-        expect(third_game.reload.state_of_piece[4][3]).to eq nil\n-        expect(third_game.reload.state_of_piece[3][2]).to eq nil\n-\n-        put :update, params: {id: third_game.id, coordinate: {from: \"[2,1]\", to: \"[0,3]\"}}\n-\n-        expect(response).to redirect_to(third_game)\n-        expect(third_game.reload.state_of_piece[1][2]).to eq nil\n-        expect(third_game.reload.state_of_piece[0][3]).to eq \"RK\"\n-      end\n-    end\n-    context \"when a piece reaches the opposing side, they will turn into a RK\" do\n-      let!(:third_match) { Gameplayer.create(team: \"red\", user_id: first_user.id, game_id: third_game.id )}\n-      let!(:third_game) {Game.create({name: \"testing\", state_of_piece:\n-        [[nil, \"B\", nil, nil, nil, \"B\", nil, \"B\"],\n-        [nil, nil, \"B\", nil, \"R\", nil , nil, nil],\n-        [nil, \"B\", nil, nil, nil, nil, nil, \"B\"],\n-        [nil, nil, \"B\", nil, nil, nil, nil, nil],\n-        [nil, nil, nil, \"R\", nil, \"B\", nil, \"B\"],\n-        [nil, nil, nil, nil, \"B\", nil, nil, nil],\n-        [nil, \"R\", nil, \"R\", nil, \"R\", nil, \"R\"],\n-        [\"R\", nil, \"R\", nil, \"R\", nil, \"R\", nil]]\n-        })\n-      }\n-      it \"R should turn into rk\" do\n-        sign_in first_user\n-        put :update, params: {id: third_game.id, coordinate: {from: \"[1,4]\", to: \"[0,3]\"}}\n-\n-        expect(response).to redirect_to(third_game)\n-        expect(third_game.reload.state_of_piece[1][4]).to eq nil\n-        expect(third_game.reload.state_of_piece[0][3]).to eq \"RK\"\n-      end\n-    end\n-    context \"when a piece reaches the opposing side, they will turn into a RK, which allows them to move backwards \" do\n-      let!(:third_match) { Gameplayer.create(team: \"red\", user_id: first_user.id, game_id: third_game.id )}\n-      let!(:third_game) {Game.create({name: \"testing\", state_of_piece:\n-        [[nil, \"B\", nil, \"RK\", nil, \"B\", nil, \"B\"],\n-        [nil, nil, \"B\", nil, nil, nil , nil, nil],\n-        [nil, \"B\", nil, nil, nil, nil, nil, \"B\"],\n-        [nil, nil, \"B\", nil, nil, nil, nil, nil],\n-        [nil, nil, nil, \"R\", nil, \"B\", nil, \"B\"],\n-        [nil, nil, nil, nil, \"B\", nil, nil, nil],\n-        [nil, \"R\", nil, \"R\", nil, \"R\", nil, \"R\"],\n-        [\"R\", nil, \"R\", nil, \"R\", nil, \"R\", nil]]\n-        })\n-      }\n-      it \"RK should move backards\" do\n-        sign_in first_user\n-        put :update, params: {id: third_game.id, coordinate: {from: \"[0,3]\", to: \"[1,4]\"}}\n-\n-        expect(response).to redirect_to(third_game)\n-        expect(third_game.reload.state_of_piece[1][3]).to eq nil\n-        expect(third_game.reload.state_of_piece[1][4]).to eq \"RK\"\n-      end\n-    end\n-    context \"team_misisng_piece should return team black\" do\n-      let!(:third_match) { Gameplayer.create(team: \"red\", user_id: first_user.id, game_id: third_game.id )}\n-      let!(:third_game) {Game.create({name: \"testing\", state_of_piece:\n-        [[nil, nil, nil, nil, nil, nil, \"BK\", nil],\n-        [nil, nil, nil, nil, nil, nil , nil, nil],\n-        [nil, nil, nil, nil, nil, nil, \"BK\", nil],\n-        [nil, nil, nil, nil, nil, \"B\", nil, \"B\"],\n-        [nil, nil, nil, nil, nil, nil, \"B\", nil],\n-        [nil, nil, nil, nil, nil, nil, nil, nil],\n-        [\"BK\", nil, nil, nil, nil, nil, \"B\", nil],\n-        [nil, nil, nil, nil, nil, \"B\", nil, \"B\"]]\n-        })\n-      }\n-      it \"there should be two black piece eatten\" do\n-        sign_in first_user\n-        put :show, params: {id: third_game.id}\n-\n-        expect(response).to render_template(\"show\")\n-        expect(response.status).to eq 200\n-        expect(third_game.reload.team_missing_piece).to eq \"team red\"\n-      end\n-    end\n-    context \"the opposing person when there are no more moves left winner is black\" do\n-      let!(:third_match) { Gameplayer.create(team: \"red\", user_id: first_user.id, game_id: third_game.id )}\n-      let!(:third_game) {Game.create({name: \"testing\", state_of_piece:\n-        [[nil, nil, nil, nil, nil, nil, \"BK\", nil],\n-        [nil, nil, nil, nil, nil, nil , nil, nil],\n-        [nil, nil, nil, nil, nil, nil, \"BK\", nil],\n-        [nil, nil, nil, nil, nil, \"B\", nil, \"B\"],\n-        [nil, nil, nil, nil, nil, nil, \"B\", nil],\n-        [nil, nil, nil, nil, nil, nil, nil, nil],\n-        [\"BK\", nil, nil, nil, nil, nil, \"B\", nil],\n-        [nil, nil, nil, nil, nil, \"B\", nil, \"B\"]]\n-        })\n-      }\n-      it \"black should be declared the winner\" do\n-        sign_in first_user\n-        put :show, params: {id: third_game.id}\n-\n-        expect(response).to render_template(\"show\")\n-        expect(response.status).to eq 200\n-        expect(third_game.reload.winner).to eq \"Team Black Wins!\"\n-      end\n-    end\n-    context \"R can no longer move so Black wins \" do\n-      let!(:third_match) { Gameplayer.create(team: \"red\", user_id: first_user.id, game_id: third_game.id )}\n-      let!(:third_game) {Game.create({name: \"testing\", state_of_piece:\n-        [[nil, nil, nil, nil, nil, nil, \"BK\", nil],\n-        [nil, nil, nil, nil, nil, nil , nil, nil],\n-        [nil, nil, nil, nil, nil, nil, \"BK\", nil],\n-        [nil, nil, nil, nil, nil, \"B\", nil, \"B\"],\n-        [nil, nil, nil, nil, nil, nil, \"B\", nil],\n-        [nil, nil, nil, nil, nil, nil, nil, \"R\"],\n-        [\"BK\", nil, nil, nil, nil, nil, \"B\", nil],\n-        [nil, nil, nil, nil, nil, \"B\", nil, \"B\"]]\n-        })\n-      }\n-      it \"team black wins\" do\n-        sign_in first_user\n-        put :show, params: {id: third_game.id}\n-\n-        expect(response).to render_template(\"show\")\n-        expect(response.status).to eq 200\n-        expect(third_game.reload.winner).to eq \"Team Black Wins!\"\n-      end\n-    end\n-  end\n+  #\n+  #\n+  # describe \"GET#edit\" do\n+  #   # return a list of games\n+  #   it \"require login\" do\n+  #     get :edit, params: {id: first_game.id}\n+  #\n+  #     expect(response).to redirect_to user_session_path\n+  #     # see if you can see first game on the page\n+  #   end\n+  #\n+  #   it \"allow to edit game since user is logged in\" do\n+  #     sign_in first_user\n+  #     get :edit, params: {id: first_game.id}\n+  #\n+  #     expect(response.status).to eq 200\n+  #     # see if you can see first game on the page\n+  #   end\n+  # end\n+  #\n+  # describe \"GET#show\" do\n+  #   # return a list of games\n+  #   # need to have a user to sign in\n+  #   # sign_in_as etc etc\n+  #   it \"show the game\" do\n+  #     get :show, params: {id: first_game.id}\n+  #\n+  #     expect(response).to render_template(\"show\")\n+  #     expect(response.status).to eq 200\n+  #     expect(first_user.gameplayers.find_by(game_id: first_game.id).team).to eq(\"black\")\n+  #   end\n+  # end\n+  #\n+  # describe \"PUT#update\" do\n+  #   it \"update game with new move \" do\n+  #     sign_in first_user\n+  #\n+  #     put :update, params: {id: first_game.id, coordinates: [2, 1, 3, 2]}\n+  #\n+  #     expect(response).to redirect_to(first_game)\n+  #     expect(first_game.reload.state_of_piece[3][4]).to eq \"B\"\n+  #   end\n+  #   it \"fail to update\" do\n+  #     sign_in first_user\n+  #     put :update, params: {id: first_game.id, coordinate: [1, 0, 2, 2]}\n+  #\n+  #     expect(response.status).to eq 302\n+  #     expect(first_game.reload.state_of_piece[2][2]).to eq nil\n+  #   end\n+  #   context \"must eat a piece\" do\n+  #     let!(:second_match) { Gameplayer.create(team: \"black\", user_id: first_user.id, game_id: second_game.id )}\n+  #     let!(:second_game) {Game.create({name: \"testing\", state_of_piece:\n+  #       [[nil, \"B\", nil, \"B\", nil, \"B\", nil, \"B\"],\n+  #       [\"B\", nil, \"B\", nil, \"B\", nil , \"B\", nil],\n+  #       [nil, nil, nil, \"B\", nil, \"B\", nil, \"B\"],\n+  #       [nil, nil, \"B\", nil, nil, nil, nil, nil],\n+  #       [nil, nil, nil, \"R\", nil, nil, nil, nil],\n+  #       [\"R\", nil, \"R\", nil, nil, nil, \"R\", nil],\n+  #       [nil, \"R\", nil, \"R\", nil, \"R\", nil, \"R\"],\n+  #       [\"R\", nil, \"R\", nil, \"R\", nil, \"R\", nil]]\n+  #       })\n+  #     }\n+  #     it \"should fail to update\" do\n+  #       sign_in first_user\n+  #       put :update, params: {id: second_game.id, coordinate: [3,2, 4,1]}\n+  #\n+  #       expect(response).to redirect_to(second_game)\n+  #       expect(second_game.reload.state_of_piece[4][1]).to eq nil\n+  #       expect(second_game.reload.state_of_piece[3][2]).to eq \"B\"\n+  #     end\n+  #   end\n+  #   context \"must eat a piece\" do\n+  #     let!(:third_match) { Gameplayer.create(team: \"black\", user_id: first_user.id, game_id: third_game.id )}\n+  #     let!(:third_game) {Game.create({name: \"testing\", state_of_piece:\n+  #       [[nil, \"B\", nil, \"B\", nil, \"B\", nil, \"B\"],\n+  #       [\"B\", nil, \"B\", nil, \"B\", nil , \"B\", nil],\n+  #       [nil, nil, nil, \"B\", nil, \"B\", nil, \"B\"],\n+  #       [nil, nil, \"B\", nil, nil, nil, nil, nil],\n+  #       [nil, nil, nil, \"R\", nil, nil, nil, nil],\n+  #       [\"R\", nil, \"R\", nil, nil, nil, \"R\", nil],\n+  #       [nil, \"R\", nil, \"R\", nil, \"R\", nil, \"R\"],\n+  #       [\"R\", nil, \"R\", nil, \"R\", nil, \"R\", nil]]\n+  #       })\n+  #     }\n+  #     it \"should eat the opposing piece next to it\" do\n+  #       sign_in first_user\n+  #       put :update, params: {id: third_game.id, coordinate: [3, 2, 5, 4]}\n+  #\n+  #       expect(response).to redirect_to(third_game)\n+  #       expect(third_game.reload.state_of_piece[3][2]).to eq nil\n+  #       expect(third_game.reload.state_of_piece[5][4]).to eq \"B\"\n+  #       expect(third_game.reload.state_of_piece[4][3]).to eq nil\n+  #     end\n+  #   end\n+  #   context \"R piece should not be forced to eat B piece since space after jump is not nil\" do\n+  #     let!(:third_match) { Gameplayer.create(team: \"red\", user_id: first_user.id, game_id: third_game.id )}\n+  #     let!(:third_game) {Game.create({name: \"testing\", state_of_piece:\n+  #       [[nil, \"B\", nil, \"B\", nil, \"B\", nil, \"B\"],\n+  #       [\"B\", nil, \"B\", nil, \"B\", nil , \"B\", nil],\n+  #       [nil, \"B\", nil, nil, nil, \"B\", nil, nil],\n+  #       [nil, nil, nil, nil, \"B\", nil, \"B\", nil],\n+  #       [nil, nil, nil, \"R\", nil, nil, nil, nil],\n+  #       [\"R\", nil, \"R\", nil, nil, nil, \"R\", nil],\n+  #       [nil, \"R\", nil, \"R\", nil, \"R\", nil, \"R\"],\n+  #       [\"R\", nil, \"R\", nil, \"R\", nil, \"R\", nil]]\n+  #       })\n+  #     }\n+  #     it \"all the piece should remain the same\" do\n+  #       sign_in first_user\n+  #       put :update, params: {id: third_game.id, coordinate: [4, 3, 2, 5]}\n+  #\n+  #       expect(response).to redirect_to(third_game)\n+  #       expect(third_game.reload.state_of_piece[4][3]).to eq \"R\"\n+  #       expect(third_game.reload.state_of_piece[2][5]).to eq \"B\"\n+  #       expect(third_game.reload.state_of_piece[3][4]).to eq \"B\"\n+  #     end\n+  #   end\n+  #   context \"R piece should allowed to move piece to the left\" do\n+  #     let!(:third_match) { Gameplayer.create(team: \"red\", user_id: first_user.id, game_id: third_game.id )}\n+  #     let!(:third_game) {Game.create({name: \"testing\", state_of_piece:\n+  #       [[nil, \"B\", nil, \"B\", nil, \"B\", nil, \"B\"],\n+  #       [\"B\", nil, \"B\", nil, \"B\", nil , \"B\", nil],\n+  #       [nil, \"B\", nil, nil, nil, \"B\", nil, nil],\n+  #       [nil, nil, nil, nil, \"B\", nil, \"B\", nil],\n+  #       [nil, nil, nil, \"R\", nil, nil, nil, nil],\n+  #       [\"R\", nil, \"R\", nil, nil, nil, \"R\", nil],\n+  #       [nil, \"R\", nil, \"R\", nil, \"R\", nil, \"R\"],\n+  #       [\"R\", nil, \"R\", nil, \"R\", nil, \"R\", nil]]\n+  #       })\n+  #     }\n+  #     it \"R is allowed to move to the left\" do\n+  #       sign_in first_user\n+  #       put :update, params: {id: third_game.id, coordinate: [4, 3, 3, 2]}\n+  #\n+  #       expect(response).to redirect_to(third_game)\n+  #       expect(third_game.reload.state_of_piece[4][3]).to eq nil\n+  #       expect(third_game.reload.state_of_piece[3][2]).to eq \"R\"\n+  #     end\n+  #   end\n+  #   context \"R piece can jump twice if there is an opposing piece next to it and there is an empty space\" do\n+  #     let!(:third_match) { Gameplayer.create(team: \"red\", user_id: first_user.id, game_id: third_game.id )}\n+  #     let!(:third_game) {Game.create({name: \"testing\", turn: 2, state_of_piece:\n+  #       [[nil, \"B\", nil, nil, nil, \"B\", nil, \"B\"],\n+  #       [\"B\", nil, \"B\", nil, \"B\", nil , \"B\", nil],\n+  #       [nil, nil, nil, nil, nil, \"B\", nil, nil],\n+  #       [nil, nil, \"B\", nil, \"R\", nil, \"B\", nil],\n+  #       [nil, \"R\", nil, \"R\", nil, nil, nil, nil],\n+  #       [\"R\", nil, nil, nil, nil, nil, nil, nil],\n+  #       [nil, \"R\", nil, \"R\", nil, \"R\", nil, \"R\"],\n+  #       [\"R\", nil, \"R\", nil, \"R\", nil, \"R\", nil]]\n+  #       })\n+  #     }\n+  #     it \"there should be two black piece eatten\" do\n+  #       sign_in first_user\n+  #       put :update, params: {id: third_game.id, coordinate: [4, 3, 2, 1]}\n+  #       # expect(response).to redirect_to(third_game)\n+  #\n+  #       expect(third_game.reload.state_of_piece[2][1]).to eq \"R\"\n+  #       expect(third_game.reload.state_of_piece[4][3]).to eq nil\n+  #       expect(third_game.reload.state_of_piece[3][2]).to eq nil\n+  #\n+  #       put :update, params: {id: third_game.id, coordinate: [2, 1, 0, 3]}\n+  #\n+  #       expect(response).to redirect_to(third_game)\n+  #       expect(third_game.reload.state_of_piece[1][2]).to eq nil\n+  #       expect(third_game.reload.state_of_piece[0][3]).to eq \"RK\"\n+  #     end\n+  #   end\n+  #   context \"when a piece reaches the opposing side, they will turn into a RK\" do\n+  #     let!(:third_match) { Gameplayer.create(team: \"red\", user_id: first_user.id, game_id: third_game.id )}\n+  #     let!(:third_game) {Game.create({name: \"testing\", state_of_piece:\n+  #       [[nil, \"B\", nil, nil, nil, \"B\", nil, \"B\"],\n+  #       [nil, nil, \"B\", nil, \"R\", nil , nil, nil],\n+  #       [nil, \"B\", nil, nil, nil, nil, nil, \"B\"],\n+  #       [nil, nil, \"B\", nil, nil, nil, nil, nil],\n+  #       [nil, nil, nil, \"R\", nil, \"B\", nil, \"B\"],\n+  #       [nil, nil, nil, nil, \"B\", nil, nil, nil],\n+  #       [nil, \"R\", nil, \"R\", nil, \"R\", nil, \"R\"],\n+  #       [\"R\", nil, \"R\", nil, \"R\", nil, \"R\", nil]]\n+  #       })\n+  #     }\n+  #     it \"R should turn into rk\" do\n+  #       sign_in first_user\n+  #       put :update, params: {id: third_game.id, coordinate: [1, 4, 0, 3]}\n+  #\n+  #       expect(response).to redirect_to(third_game)\n+  #       expect(third_game.reload.state_of_piece[1][4]).to eq nil\n+  #       expect(third_game.reload.state_of_piece[0][3]).to eq \"RK\"\n+  #     end\n+  #   end\n+  #   context \"when a piece reaches the opposing side, they will turn into a RK, which allows them to move backwards \" do\n+  #     let!(:third_match) { Gameplayer.create(team: \"red\", user_id: first_user.id, game_id: third_game.id )}\n+  #     let!(:third_game) {Game.create({name: \"testing\", state_of_piece:\n+  #       [[nil, \"B\", nil, \"RK\", nil, \"B\", nil, \"B\"],\n+  #       [nil, nil, \"B\", nil, nil, nil , nil, nil],\n+  #       [nil, \"B\", nil, nil, nil, nil, nil, \"B\"],\n+  #       [nil, nil, \"B\", nil, nil, nil, nil, nil],\n+  #       [nil, nil, nil, \"R\", nil, \"B\", nil, \"B\"],\n+  #       [nil, nil, nil, nil, \"B\", nil, nil, nil],\n+  #       [nil, \"R\", nil, \"R\", nil, \"R\", nil, \"R\"],\n+  #       [\"R\", nil, \"R\", nil, \"R\", nil, \"R\", nil]]\n+  #       })\n+  #     }\n+  #     it \"RK should move backards\" do\n+  #       sign_in first_user\n+  #       put :update, params: {id: third_game.id, coordinate: [0, 3, 1, 4]}\n+  #\n+  #       expect(response).to redirect_to(third_game)\n+  #       expect(third_game.reload.state_of_piece[1][3]).to eq nil\n+  #       expect(third_game.reload.state_of_piece[1][4]).to eq \"RK\"\n+  #     end\n+  #   end\n+    # context \"team_misisng_piece should return team black\" do\n+    #   let!(:third_match) { Gameplayer.create(team: \"red\", user_id: first_user.id, game_id: third_game.id )}\n+    #   let!(:third_game) {Game.create({name: \"testing\", state_of_piece:\n+    #     [[nil, nil, nil, nil, nil, nil, \"BK\", nil],\n+    #     [nil, nil, nil, nil, nil, nil , nil, nil],\n+    #     [nil, nil, nil, nil, nil, nil, \"BK\", nil],\n+    #     [nil, nil, nil, nil, nil, \"B\", nil, \"B\"],\n+    #     [nil, nil, nil, nil, nil, nil, \"B\", nil],\n+    #     [nil, nil, nil, nil, nil, nil, nil, nil],\n+    #     [\"BK\", nil, nil, nil, nil, nil, \"B\", nil],\n+    #     [nil, nil, nil, nil, nil, \"B\", nil, \"B\"]]\n+    #     })\n+    #   }\n+    #   it \"there should be two black piece eatten\" do\n+    #     sign_in first_user\n+    #     put :show, params: {id: third_game.id}\n+    #\n+    #     # expect(response).to render_template(\"show\")\n+    #     expect(response.status).to eq 200\n+    #     expect(third_game.reload.team_missing_piece).to eq \"team red\"\n+    #   end\n+    # end\n+    # context \"the opposing person when there are no more moves left winner is black\" do\n+    #   let!(:third_match) { Gameplayer.create(team: \"red\", user_id: first_user.id, game_id: third_game.id )}\n+    #   let!(:third_game) {Game.create({name: \"testing\", state_of_piece:\n+    #     [[nil, nil, nil, nil, nil, nil, \"BK\", nil],\n+    #     [nil, nil, nil, nil, nil, nil , nil, nil],\n+    #     [nil, nil, nil, nil, nil, nil, \"BK\", nil],\n+    #     [nil, nil, nil, nil, nil, \"B\", nil, \"B\"],\n+    #     [nil, nil, nil, nil, nil, nil, \"B\", nil],\n+    #     [nil, nil, nil, nil, nil, nil, nil, nil],\n+    #     [\"BK\", nil, nil, nil, nil, nil, \"B\", nil],\n+    #     [nil, nil, nil, nil, nil, \"B\", nil, \"B\"]]\n+    #     })\n+    #   }\n+    #   it \"black should be declared the winner\" do\n+    #     sign_in first_user\n+    #     put :show, params: {id: third_game.id}\n+    #\n+    #     # expect(response).to render_template(\"show\")\n+    #     expect(response.status).to eq 200\n+    #     expect(third_game.reload.winner).to eq \"Team Black Wins!\"\n+    #   end\n+    # end\n+    # context \"R can no longer move so Black wins \" do\n+    #   let!(:third_match) { Gameplayer.create(team: \"red\", user_id: first_user.id, game_id: third_game.id )}","path":"spec/controller/games_controller_spec.rb","position":540,"original_position":540,"commit_id":"203b6edaa9e5cad1d386d3a71a1c8a8009677450","original_commit_id":"203b6edaa9e5cad1d386d3a71a1c8a8009677450","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Line is too long. [109/80]","created_at":"2017-08-03T18:08:06Z","updated_at":"2017-08-03T18:08:07Z","html_url":"https://github.com/jacklynhma/checkers/pull/13#discussion_r131218767","pull_request_url":"https://api.github.com/repos/jacklynhma/checkers/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/jacklynhma/checkers/pulls/comments/131218767"},"html":{"href":"https://github.com/jacklynhma/checkers/pull/13#discussion_r131218767"},"pull_request":{"href":"https://api.github.com/repos/jacklynhma/checkers/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/jacklynhma/checkers/pulls/13","id":134007251,"html_url":"https://github.com/jacklynhma/checkers/pull/13","diff_url":"https://github.com/jacklynhma/checkers/pull/13.diff","patch_url":"https://github.com/jacklynhma/checkers/pull/13.patch","issue_url":"https://api.github.com/repos/jacklynhma/checkers/issues/13","number":13,"state":"open","locked":false,"title":"fix logic for king, and jumping","user":{"login":"jacklynhma","id":29336370,"avatar_url":"https://avatars2.githubusercontent.com/u/29336370?v=4","gravatar_id":"","url":"https://api.github.com/users/jacklynhma","html_url":"https://github.com/jacklynhma","followers_url":"https://api.github.com/users/jacklynhma/followers","following_url":"https://api.github.com/users/jacklynhma/following{/other_user}","gists_url":"https://api.github.com/users/jacklynhma/gists{/gist_id}","starred_url":"https://api.github.com/users/jacklynhma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacklynhma/subscriptions","organizations_url":"https://api.github.com/users/jacklynhma/orgs","repos_url":"https://api.github.com/users/jacklynhma/repos","events_url":"https://api.github.com/users/jacklynhma/events{/privacy}","received_events_url":"https://api.github.com/users/jacklynhma/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-08-03T18:07:57Z","updated_at":"2017-08-03T18:08:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"39f8272d88749c739f635b2457c7ff13291ffe4b","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/jacklynhma/checkers/pulls/13/commits","review_comments_url":"https://api.github.com/repos/jacklynhma/checkers/pulls/13/comments","review_comment_url":"https://api.github.com/repos/jacklynhma/checkers/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jacklynhma/checkers/issues/13/comments","statuses_url":"https://api.github.com/repos/jacklynhma/checkers/statuses/203b6edaa9e5cad1d386d3a71a1c8a8009677450","head":{"label":"jacklynhma:fixing-logic","ref":"fixing-logic","sha":"203b6edaa9e5cad1d386d3a71a1c8a8009677450","user":{"login":"jacklynhma","id":29336370,"avatar_url":"https://avatars2.githubusercontent.com/u/29336370?v=4","gravatar_id":"","url":"https://api.github.com/users/jacklynhma","html_url":"https://github.com/jacklynhma","followers_url":"https://api.github.com/users/jacklynhma/followers","following_url":"https://api.github.com/users/jacklynhma/following{/other_user}","gists_url":"https://api.github.com/users/jacklynhma/gists{/gist_id}","starred_url":"https://api.github.com/users/jacklynhma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacklynhma/subscriptions","organizations_url":"https://api.github.com/users/jacklynhma/orgs","repos_url":"https://api.github.com/users/jacklynhma/repos","events_url":"https://api.github.com/users/jacklynhma/events{/privacy}","received_events_url":"https://api.github.com/users/jacklynhma/received_events","type":"User","site_admin":false},"repo":{"id":98761450,"name":"checkers","full_name":"jacklynhma/checkers","owner":{"login":"jacklynhma","id":29336370,"avatar_url":"https://avatars2.githubusercontent.com/u/29336370?v=4","gravatar_id":"","url":"https://api.github.com/users/jacklynhma","html_url":"https://github.com/jacklynhma","followers_url":"https://api.github.com/users/jacklynhma/followers","following_url":"https://api.github.com/users/jacklynhma/following{/other_user}","gists_url":"https://api.github.com/users/jacklynhma/gists{/gist_id}","starred_url":"https://api.github.com/users/jacklynhma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacklynhma/subscriptions","organizations_url":"https://api.github.com/users/jacklynhma/orgs","repos_url":"https://api.github.com/users/jacklynhma/repos","events_url":"https://api.github.com/users/jacklynhma/events{/privacy}","received_events_url":"https://api.github.com/users/jacklynhma/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jacklynhma/checkers","description":null,"fork":false,"url":"https://api.github.com/repos/jacklynhma/checkers","forks_url":"https://api.github.com/repos/jacklynhma/checkers/forks","keys_url":"https://api.github.com/repos/jacklynhma/checkers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jacklynhma/checkers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jacklynhma/checkers/teams","hooks_url":"https://api.github.com/repos/jacklynhma/checkers/hooks","issue_events_url":"https://api.github.com/repos/jacklynhma/checkers/issues/events{/number}","events_url":"https://api.github.com/repos/jacklynhma/checkers/events","assignees_url":"https://api.github.com/repos/jacklynhma/checkers/assignees{/user}","branches_url":"https://api.github.com/repos/jacklynhma/checkers/branches{/branch}","tags_url":"https://api.github.com/repos/jacklynhma/checkers/tags","blobs_url":"https://api.github.com/repos/jacklynhma/checkers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jacklynhma/checkers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jacklynhma/checkers/git/refs{/sha}","trees_url":"https://api.github.com/repos/jacklynhma/checkers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jacklynhma/checkers/statuses/{sha}","languages_url":"https://api.github.com/repos/jacklynhma/checkers/languages","stargazers_url":"https://api.github.com/repos/jacklynhma/checkers/stargazers","contributors_url":"https://api.github.com/repos/jacklynhma/checkers/contributors","subscribers_url":"https://api.github.com/repos/jacklynhma/checkers/subscribers","subscription_url":"https://api.github.com/repos/jacklynhma/checkers/subscription","commits_url":"https://api.github.com/repos/jacklynhma/checkers/commits{/sha}","git_commits_url":"https://api.github.com/repos/jacklynhma/checkers/git/commits{/sha}","comments_url":"https://api.github.com/repos/jacklynhma/checkers/comments{/number}","issue_comment_url":"https://api.github.com/repos/jacklynhma/checkers/issues/comments{/number}","contents_url":"https://api.github.com/repos/jacklynhma/checkers/contents/{+path}","compare_url":"https://api.github.com/repos/jacklynhma/checkers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jacklynhma/checkers/merges","archive_url":"https://api.github.com/repos/jacklynhma/checkers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jacklynhma/checkers/downloads","issues_url":"https://api.github.com/repos/jacklynhma/checkers/issues{/number}","pulls_url":"https://api.github.com/repos/jacklynhma/checkers/pulls{/number}","milestones_url":"https://api.github.com/repos/jacklynhma/checkers/milestones{/number}","notifications_url":"https://api.github.com/repos/jacklynhma/checkers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jacklynhma/checkers/labels{/name}","releases_url":"https://api.github.com/repos/jacklynhma/checkers/releases{/id}","deployments_url":"https://api.github.com/repos/jacklynhma/checkers/deployments","created_at":"2017-07-29T22:18:05Z","updated_at":"2017-07-29T22:19:32Z","pushed_at":"2017-08-03T18:07:57Z","git_url":"git://github.com/jacklynhma/checkers.git","ssh_url":"git@github.com:jacklynhma/checkers.git","clone_url":"https://github.com/jacklynhma/checkers.git","svn_url":"https://github.com/jacklynhma/checkers","homepage":null,"size":224,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"jacklynhma:master","ref":"master","sha":"c21f8b5db5bf3a171923bb94ae790268dad1d1c3","user":{"login":"jacklynhma","id":29336370,"avatar_url":"https://avatars2.githubusercontent.com/u/29336370?v=4","gravatar_id":"","url":"https://api.github.com/users/jacklynhma","html_url":"https://github.com/jacklynhma","followers_url":"https://api.github.com/users/jacklynhma/followers","following_url":"https://api.github.com/users/jacklynhma/following{/other_user}","gists_url":"https://api.github.com/users/jacklynhma/gists{/gist_id}","starred_url":"https://api.github.com/users/jacklynhma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacklynhma/subscriptions","organizations_url":"https://api.github.com/users/jacklynhma/orgs","repos_url":"https://api.github.com/users/jacklynhma/repos","events_url":"https://api.github.com/users/jacklynhma/events{/privacy}","received_events_url":"https://api.github.com/users/jacklynhma/received_events","type":"User","site_admin":false},"repo":{"id":98761450,"name":"checkers","full_name":"jacklynhma/checkers","owner":{"login":"jacklynhma","id":29336370,"avatar_url":"https://avatars2.githubusercontent.com/u/29336370?v=4","gravatar_id":"","url":"https://api.github.com/users/jacklynhma","html_url":"https://github.com/jacklynhma","followers_url":"https://api.github.com/users/jacklynhma/followers","following_url":"https://api.github.com/users/jacklynhma/following{/other_user}","gists_url":"https://api.github.com/users/jacklynhma/gists{/gist_id}","starred_url":"https://api.github.com/users/jacklynhma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacklynhma/subscriptions","organizations_url":"https://api.github.com/users/jacklynhma/orgs","repos_url":"https://api.github.com/users/jacklynhma/repos","events_url":"https://api.github.com/users/jacklynhma/events{/privacy}","received_events_url":"https://api.github.com/users/jacklynhma/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jacklynhma/checkers","description":null,"fork":false,"url":"https://api.github.com/repos/jacklynhma/checkers","forks_url":"https://api.github.com/repos/jacklynhma/checkers/forks","keys_url":"https://api.github.com/repos/jacklynhma/checkers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jacklynhma/checkers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jacklynhma/checkers/teams","hooks_url":"https://api.github.com/repos/jacklynhma/checkers/hooks","issue_events_url":"https://api.github.com/repos/jacklynhma/checkers/issues/events{/number}","events_url":"https://api.github.com/repos/jacklynhma/checkers/events","assignees_url":"https://api.github.com/repos/jacklynhma/checkers/assignees{/user}","branches_url":"https://api.github.com/repos/jacklynhma/checkers/branches{/branch}","tags_url":"https://api.github.com/repos/jacklynhma/checkers/tags","blobs_url":"https://api.github.com/repos/jacklynhma/checkers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jacklynhma/checkers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jacklynhma/checkers/git/refs{/sha}","trees_url":"https://api.github.com/repos/jacklynhma/checkers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jacklynhma/checkers/statuses/{sha}","languages_url":"https://api.github.com/repos/jacklynhma/checkers/languages","stargazers_url":"https://api.github.com/repos/jacklynhma/checkers/stargazers","contributors_url":"https://api.github.com/repos/jacklynhma/checkers/contributors","subscribers_url":"https://api.github.com/repos/jacklynhma/checkers/subscribers","subscription_url":"https://api.github.com/repos/jacklynhma/checkers/subscription","commits_url":"https://api.github.com/repos/jacklynhma/checkers/commits{/sha}","git_commits_url":"https://api.github.com/repos/jacklynhma/checkers/git/commits{/sha}","comments_url":"https://api.github.com/repos/jacklynhma/checkers/comments{/number}","issue_comment_url":"https://api.github.com/repos/jacklynhma/checkers/issues/comments{/number}","contents_url":"https://api.github.com/repos/jacklynhma/checkers/contents/{+path}","compare_url":"https://api.github.com/repos/jacklynhma/checkers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jacklynhma/checkers/merges","archive_url":"https://api.github.com/repos/jacklynhma/checkers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jacklynhma/checkers/downloads","issues_url":"https://api.github.com/repos/jacklynhma/checkers/issues{/number}","pulls_url":"https://api.github.com/repos/jacklynhma/checkers/pulls{/number}","milestones_url":"https://api.github.com/repos/jacklynhma/checkers/milestones{/number}","notifications_url":"https://api.github.com/repos/jacklynhma/checkers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jacklynhma/checkers/labels{/name}","releases_url":"https://api.github.com/repos/jacklynhma/checkers/releases{/id}","deployments_url":"https://api.github.com/repos/jacklynhma/checkers/deployments","created_at":"2017-07-29T22:18:05Z","updated_at":"2017-07-29T22:19:32Z","pushed_at":"2017-08-03T18:07:57Z","git_url":"git://github.com/jacklynhma/checkers.git","ssh_url":"git@github.com:jacklynhma/checkers.git","clone_url":"https://github.com/jacklynhma/checkers.git","svn_url":"https://github.com/jacklynhma/checkers","homepage":null,"size":224,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"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/jacklynhma/checkers/pulls/13"},"html":{"href":"https://github.com/jacklynhma/checkers/pull/13"},"issue":{"href":"https://api.github.com/repos/jacklynhma/checkers/issues/13"},"comments":{"href":"https://api.github.com/repos/jacklynhma/checkers/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/jacklynhma/checkers/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/jacklynhma/checkers/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jacklynhma/checkers/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/jacklynhma/checkers/statuses/203b6edaa9e5cad1d386d3a71a1c8a8009677450"}}}}
{"actor":{"display_login":"houndci-bot"}}