{"comment":{"url":"https://api.github.com/repos/alexfelipe/intro-jogos/comments/15587900","html_url":"https://github.com/alexfelipe/intro-jogos/commit/b915b112179c86ad32245584ad6bdcbd36a91ccb#commitcomment-15587900","id":15587900,"user":{"login":"alexfelipe","id":8989346,"avatar_url":"https://avatars.githubusercontent.com/u/8989346?v=3","gravatar_id":"","url":"https://api.github.com/users/alexfelipe","html_url":"https://github.com/alexfelipe","followers_url":"https://api.github.com/users/alexfelipe/followers","following_url":"https://api.github.com/users/alexfelipe/following{/other_user}","gists_url":"https://api.github.com/users/alexfelipe/gists{/gist_id}","starred_url":"https://api.github.com/users/alexfelipe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexfelipe/subscriptions","organizations_url":"https://api.github.com/users/alexfelipe/orgs","repos_url":"https://api.github.com/users/alexfelipe/repos","events_url":"https://api.github.com/users/alexfelipe/events{/privacy}","received_events_url":"https://api.github.com/users/alexfelipe/received_events","type":"User","site_admin":false},"position":64,"line":55,"path":"src/br/com/caelum/alura/jogo2/Forca.java","commit_id":"b915b112179c86ad32245584ad6bdcbd36a91ccb","created_at":"2016-01-21T15:17:09Z","updated_at":"2016-01-21T15:17:09Z","body":"trecho de código traduzido:\r\n\r\ndef joga(nome)\r\n\tpalavra_secreta = sorteia_palavra_secreta\r\n\r\n\terros = 0\r\n\tchutes = []\r\n\tpontos_ate_agora = 0\r\n\r\n\twhile erros < 5\r\n\t\tmascara = palavra_mascarada(chutes, palavra_secreta)\r\n\t\tchute = pede_um_chute_valido(chutes, erros, mascara)\r\n\t\tchutes << chute\r\n\r\n\t\tchutou_uma_unica_letra = chute.size == 1\r\n\t\tif chutou_uma_unica_letra\r\n\t\t\t\r\n\t\t\ttotal_encontrado = palavra_secreta.count(chute[0])"}}