{"action":"created","issue":{"url":"https://api.github.com/repos/OOP-2015-Sem1/OOP-2015/issues/80","labels_url":"https://api.github.com/repos/OOP-2015-Sem1/OOP-2015/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/OOP-2015-Sem1/OOP-2015/issues/80/comments","events_url":"https://api.github.com/repos/OOP-2015-Sem1/OOP-2015/issues/80/events","html_url":"https://github.com/OOP-2015-Sem1/OOP-2015/pull/80","id":123045057,"number":80,"title":"Chess help #4","user":{"login":"vblana","id":8362143,"avatar_url":"https://avatars.githubusercontent.com/u/8362143?v=3","gravatar_id":"","url":"https://api.github.com/users/vblana","html_url":"https://github.com/vblana","followers_url":"https://api.github.com/users/vblana/followers","following_url":"https://api.github.com/users/vblana/following{/other_user}","gists_url":"https://api.github.com/users/vblana/gists{/gist_id}","starred_url":"https://api.github.com/users/vblana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vblana/subscriptions","organizations_url":"https://api.github.com/users/vblana/orgs","repos_url":"https://api.github.com/users/vblana/repos","events_url":"https://api.github.com/users/vblana/events{/privacy}","received_events_url":"https://api.github.com/users/vblana/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OOP-2015-Sem1/OOP-2015/labels/Improvements%20needed","name":"Improvements needed","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":26,"created_at":"2015-12-18T23:47:56Z","updated_at":"2015-12-28T09:45:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OOP-2015-Sem1/OOP-2015/pulls/80","html_url":"https://github.com/OOP-2015-Sem1/OOP-2015/pull/80","diff_url":"https://github.com/OOP-2015-Sem1/OOP-2015/pull/80.diff","patch_url":"https://github.com/OOP-2015-Sem1/OOP-2015/pull/80.patch"},"body":"I know i made a mess of the static methods and attributes but i will sort it out later.\r\nMy problem is with the kingSafety method.\r\nTheoretically it should work and i have no idea why it doesn't."},"comment":{"url":"https://api.github.com/repos/OOP-2015-Sem1/OOP-2015/issues/comments/167528164","html_url":"https://github.com/OOP-2015-Sem1/OOP-2015/pull/80#issuecomment-167528164","issue_url":"https://api.github.com/repos/OOP-2015-Sem1/OOP-2015/issues/80","id":167528164,"user":{"login":"vblana","id":8362143,"avatar_url":"https://avatars.githubusercontent.com/u/8362143?v=3","gravatar_id":"","url":"https://api.github.com/users/vblana","html_url":"https://github.com/vblana","followers_url":"https://api.github.com/users/vblana/followers","following_url":"https://api.github.com/users/vblana/following{/other_user}","gists_url":"https://api.github.com/users/vblana/gists{/gist_id}","starred_url":"https://api.github.com/users/vblana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vblana/subscriptions","organizations_url":"https://api.github.com/users/vblana/orgs","repos_url":"https://api.github.com/users/vblana/repos","events_url":"https://api.github.com/users/vblana/events{/privacy}","received_events_url":"https://api.github.com/users/vblana/received_events","type":"User","site_admin":false},"created_at":"2015-12-28T09:45:25Z","updated_at":"2015-12-28T09:45:25Z","body":"Well, first of all the castle can only be made with the rook.\r\nI tested most of the cases(all castle moves(4 of them),castle when a specific square is in check etc and it works).\r\n\r\nMerging that condition into a method is quite doable.\r\n\r\nHowever, the highlighting part is not difficult because i don't know all the positions, but because the graphics can only be accessed from within paintComponent"}}