{"action":"created","issue":{"url":"https://api.github.com/repos/OmarShehata/Airena/issues/1","repository_url":"https://api.github.com/repos/OmarShehata/Airena","labels_url":"https://api.github.com/repos/OmarShehata/Airena/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/OmarShehata/Airena/issues/1/comments","events_url":"https://api.github.com/repos/OmarShehata/Airena/issues/1/events","html_url":"https://github.com/OmarShehata/Airena/issues/1","id":148750309,"number":1,"title":"Undefined player in key-press simulation","user":{"login":"SnoopJeDi","id":6125322,"avatar_url":"https://avatars.githubusercontent.com/u/6125322?v=3","gravatar_id":"","url":"https://api.github.com/users/SnoopJeDi","html_url":"https://github.com/SnoopJeDi","followers_url":"https://api.github.com/users/SnoopJeDi/followers","following_url":"https://api.github.com/users/SnoopJeDi/following{/other_user}","gists_url":"https://api.github.com/users/SnoopJeDi/gists{/gist_id}","starred_url":"https://api.github.com/users/SnoopJeDi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SnoopJeDi/subscriptions","organizations_url":"https://api.github.com/users/SnoopJeDi/orgs","repos_url":"https://api.github.com/users/SnoopJeDi/repos","events_url":"https://api.github.com/users/SnoopJeDi/events{/privacy}","received_events_url":"https://api.github.com/users/SnoopJeDi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-15T19:39:58Z","updated_at":"2016-04-16T14:57:11Z","closed_at":null,"body":"When using on the web, execution will fail because `pl` is set to undefined at [init.js:L250](https://github.com/OmarShehata/Airena/blob/master/src/init.js#L250).  This could be a problem with unreliable sockets (stepping into the socket handler for `initial-users` shows that `player.id` is out of step with `msg.id` pretty much immediately), but at the very least there should be a test here to avoid a hard failure."},"comment":{"url":"https://api.github.com/repos/OmarShehata/Airena/issues/comments/210834712","html_url":"https://github.com/OmarShehata/Airena/issues/1#issuecomment-210834712","issue_url":"https://api.github.com/repos/OmarShehata/Airena/issues/1","id":210834712,"user":{"login":"SnoopJeDi","id":6125322,"avatar_url":"https://avatars.githubusercontent.com/u/6125322?v=3","gravatar_id":"","url":"https://api.github.com/users/SnoopJeDi","html_url":"https://github.com/SnoopJeDi","followers_url":"https://api.github.com/users/SnoopJeDi/followers","following_url":"https://api.github.com/users/SnoopJeDi/following{/other_user}","gists_url":"https://api.github.com/users/SnoopJeDi/gists{/gist_id}","starred_url":"https://api.github.com/users/SnoopJeDi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SnoopJeDi/subscriptions","organizations_url":"https://api.github.com/users/SnoopJeDi/orgs","repos_url":"https://api.github.com/users/SnoopJeDi/repos","events_url":"https://api.github.com/users/SnoopJeDi/events{/privacy}","received_events_url":"https://api.github.com/users/SnoopJeDi/received_events","type":"User","site_admin":false},"created_at":"2016-04-16T14:57:10Z","updated_at":"2016-04-16T14:57:10Z","body":"I think I've had it behave properly a few times on the hosted version, but more often it exhibits this behavior.  \r\n\r\nYea, that'd do the trick.  You probably want to write a `getPlayer(id)` function, so that you don't need a test everytime you want to touch `playerArray`."}}