{"action":"created","issue":{"url":"https://api.github.com/repos/arve0/oppgaver/issues/32","labels_url":"https://api.github.com/repos/arve0/oppgaver/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/arve0/oppgaver/issues/32/comments","events_url":"https://api.github.com/repos/arve0/oppgaver/issues/32/events","html_url":"https://github.com/arve0/oppgaver/pull/32","id":91431498,"number":32,"title":"Hangman-oppgave","user":{"login":"okpedersen","id":3005958,"avatar_url":"https://avatars.githubusercontent.com/u/3005958?v=3","gravatar_id":"","url":"https://api.github.com/users/okpedersen","html_url":"https://github.com/okpedersen","followers_url":"https://api.github.com/users/okpedersen/followers","following_url":"https://api.github.com/users/okpedersen/following{/other_user}","gists_url":"https://api.github.com/users/okpedersen/gists{/gist_id}","starred_url":"https://api.github.com/users/okpedersen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okpedersen/subscriptions","organizations_url":"https://api.github.com/users/okpedersen/orgs","repos_url":"https://api.github.com/users/okpedersen/repos","events_url":"https://api.github.com/users/okpedersen/events{/privacy}","received_events_url":"https://api.github.com/users/okpedersen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-27T08:08:25Z","updated_at":"2015-07-03T16:45:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/arve0/oppgaver/pulls/32","html_url":"https://github.com/arve0/oppgaver/pull/32","diff_url":"https://github.com/arve0/oppgaver/pull/32.diff","patch_url":"https://github.com/arve0/oppgaver/pull/32.patch"},"body":"Her er et utgangspunkt for første spilloppgave. To filer: `hangman.py` og `hangman_solution.py`. En diff vil vise omtrent hva som forventes at ungene klarer med litt veiledning.\r\n\r\nDet er meningen at de skal fylle inn det som mangler i funksjonene, ved hjelp av veiledning i oppgaveteksten.\r\n\r\nDet blir her brukt en global `game_state`-dictionary som det er meningen at ungene skal legge til spesifikke key/value par som brukes av bibliotekskoden. Dette er enkelt, og gir god trening i bruk av dictionaries og er bedre en mange globale variabler (slipper bl.a. bruk av `global`).\r\n\r\n\r\nErfaringer:\r\n - Vanskelig med en egen fil for lib-kode, derfor er denne inkludert nederst i fila. Dette skyldes trolig at `pgzrun` kjører en `eval()` av hele fila og får dermed problemer med path-en.\r\n\r\n**Ikke** merge denne, det kommer en oppgavetekst etterhvert."},"comment":{"url":"https://api.github.com/repos/arve0/oppgaver/issues/comments/118391159","html_url":"https://github.com/arve0/oppgaver/pull/32#issuecomment-118391159","issue_url":"https://api.github.com/repos/arve0/oppgaver/issues/32","id":118391159,"user":{"login":"arve0","id":4810521,"avatar_url":"https://avatars.githubusercontent.com/u/4810521?v=3","gravatar_id":"","url":"https://api.github.com/users/arve0","html_url":"https://github.com/arve0","followers_url":"https://api.github.com/users/arve0/followers","following_url":"https://api.github.com/users/arve0/following{/other_user}","gists_url":"https://api.github.com/users/arve0/gists{/gist_id}","starred_url":"https://api.github.com/users/arve0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arve0/subscriptions","organizations_url":"https://api.github.com/users/arve0/orgs","repos_url":"https://api.github.com/users/arve0/repos","events_url":"https://api.github.com/users/arve0/events{/privacy}","received_events_url":"https://api.github.com/users/arve0/received_events","type":"User","site_admin":false},"created_at":"2015-07-03T16:45:16Z","updated_at":"2015-07-03T16:45:16Z","body":"PS: man kan gjerne ha main som biblioteks-kode. Kanskje en `try:`-blokk gjør susen for å finne ut hvor langt man er kommet i oppgaven? Bibliotekskoden kan da også teste funksjonene direkte.\r\n\r\nFeks output:\r\n```\r\nDet ser ikke ut som du har gjort steg 1. Lag funksjonen \"transform_word\" for å fortsette.\r\n```"}}