{"action":"closed","issue":{"url":"https://api.github.com/repos/Grupo-de-ESII/Jogo-de-Xadrez/issues/24","repository_url":"https://api.github.com/repos/Grupo-de-ESII/Jogo-de-Xadrez","labels_url":"https://api.github.com/repos/Grupo-de-ESII/Jogo-de-Xadrez/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/Grupo-de-ESII/Jogo-de-Xadrez/issues/24/comments","events_url":"https://api.github.com/repos/Grupo-de-ESII/Jogo-de-Xadrez/issues/24/events","html_url":"https://github.com/Grupo-de-ESII/Jogo-de-Xadrez/issues/24","id":383958437,"node_id":"MDU6SXNzdWUzODM5NTg0Mzc=","number":24,"title":"adicionar limitação de xeque e xeque-mate","user":{"login":"petrolifero","id":1424699,"node_id":"MDQ6VXNlcjE0MjQ2OTk=","avatar_url":"https://avatars2.githubusercontent.com/u/1424699?v=4","gravatar_id":"","url":"https://api.github.com/users/petrolifero","html_url":"https://github.com/petrolifero","followers_url":"https://api.github.com/users/petrolifero/followers","following_url":"https://api.github.com/users/petrolifero/following{/other_user}","gists_url":"https://api.github.com/users/petrolifero/gists{/gist_id}","starred_url":"https://api.github.com/users/petrolifero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petrolifero/subscriptions","organizations_url":"https://api.github.com/users/petrolifero/orgs","repos_url":"https://api.github.com/users/petrolifero/repos","events_url":"https://api.github.com/users/petrolifero/events{/privacy}","received_events_url":"https://api.github.com/users/petrolifero/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"petrolifero","id":1424699,"node_id":"MDQ6VXNlcjE0MjQ2OTk=","avatar_url":"https://avatars2.githubusercontent.com/u/1424699?v=4","gravatar_id":"","url":"https://api.github.com/users/petrolifero","html_url":"https://github.com/petrolifero","followers_url":"https://api.github.com/users/petrolifero/followers","following_url":"https://api.github.com/users/petrolifero/following{/other_user}","gists_url":"https://api.github.com/users/petrolifero/gists{/gist_id}","starred_url":"https://api.github.com/users/petrolifero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petrolifero/subscriptions","organizations_url":"https://api.github.com/users/petrolifero/orgs","repos_url":"https://api.github.com/users/petrolifero/repos","events_url":"https://api.github.com/users/petrolifero/events{/privacy}","received_events_url":"https://api.github.com/users/petrolifero/received_events","type":"User","site_admin":false},"assignees":[{"login":"petrolifero","id":1424699,"node_id":"MDQ6VXNlcjE0MjQ2OTk=","avatar_url":"https://avatars2.githubusercontent.com/u/1424699?v=4","gravatar_id":"","url":"https://api.github.com/users/petrolifero","html_url":"https://github.com/petrolifero","followers_url":"https://api.github.com/users/petrolifero/followers","following_url":"https://api.github.com/users/petrolifero/following{/other_user}","gists_url":"https://api.github.com/users/petrolifero/gists{/gist_id}","starred_url":"https://api.github.com/users/petrolifero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petrolifero/subscriptions","organizations_url":"https://api.github.com/users/petrolifero/orgs","repos_url":"https://api.github.com/users/petrolifero/repos","events_url":"https://api.github.com/users/petrolifero/events{/privacy}","received_events_url":"https://api.github.com/users/petrolifero/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-11-24T04:34:12Z","updated_at":"2018-11-29T18:13:27Z","closed_at":"2018-11-29T18:13:27Z","author_association":"MEMBER","body":"- [x] para cada peça, remover, do retorno de `movimentosPossiveis `e `peçaMovimentosPossiveis`, os movimentos que colocariam seu proprio rei em xeque. (isso também significa, obviamente, que o rei não pode se colocar em xeque)\r\n\r\n- [x] para cada peça, se seu rei estiver em xeque, limitar os movimentos dela aqueles que salvem seu rei(nenhum, possivelmente)\r\n\r\n- [x] Talvez salvar no tabuleiro a localização dos reis, dado que eles terão de ser localizados muitas vezes(calma, otimização prematura é a raiz de todo mal). Isso exigiria que, em move, se a peça movida fosse um rei, essa referencia fosse atualizada\r\n\r\n- [x] O rei deve possuir um metodo `estouEmXeque(posicao,tabuleiro)` o qual retorna um booleano\r\n\r\n- [x] O tabuleiro deve ter um metodo xequeMate(self,jogador1) o qual retorna true se o jogador1 não puder se mover com o tabuleiro como esta."}}
{"actor":{"display_login":"petrolifero"}}