{"action":"created","issue":{"url":"https://api.github.com/repos/ZeusWPI/MOZAIC/issues/114","repository_url":"https://api.github.com/repos/ZeusWPI/MOZAIC","labels_url":"https://api.github.com/repos/ZeusWPI/MOZAIC/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/ZeusWPI/MOZAIC/issues/114/comments","events_url":"https://api.github.com/repos/ZeusWPI/MOZAIC/issues/114/events","html_url":"https://github.com/ZeusWPI/MOZAIC/issues/114","id":265560004,"number":114,"title":"Make player name constant in PlanetWars protocol","user":{"login":"wschella","id":9478856,"avatar_url":"https://avatars0.githubusercontent.com/u/9478856?v=4","gravatar_id":"","url":"https://api.github.com/users/wschella","html_url":"https://github.com/wschella","followers_url":"https://api.github.com/users/wschella/followers","following_url":"https://api.github.com/users/wschella/following{/other_user}","gists_url":"https://api.github.com/users/wschella/gists{/gist_id}","starred_url":"https://api.github.com/users/wschella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wschella/subscriptions","organizations_url":"https://api.github.com/users/wschella/orgs","repos_url":"https://api.github.com/users/wschella/repos","events_url":"https://api.github.com/users/wschella/events{/privacy}","received_events_url":"https://api.github.com/users/wschella/received_events","type":"User","site_admin":false},"labels":[{"id":635601286,"url":"https://api.github.com/repos/ZeusWPI/MOZAIC/labels/difficulty:easy","name":"difficulty:easy","color":"1d76db","default":false},{"id":678483985,"url":"https://api.github.com/repos/ZeusWPI/MOZAIC/labels/game:planetwars","name":"game:planetwars","color":"d93f0b","default":false},{"id":679093937,"url":"https://api.github.com/repos/ZeusWPI/MOZAIC/labels/priority:low","name":"priority:low","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-10-15T10:03:41Z","updated_at":"2017-11-15T23:00:03Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Currently we pass the bot's in-game name as it's first parameter (when executing the run command).\r\nI feel like this does not fit nicely in the planned architecture.\r\n\r\nWe might consider something like in the rules from Googles Planetwars AI Challenge:\r\n\r\n> The owner of a planet can be neutral, player 1, or player 2. Players always see themselves as player 1 and their opponents as player 2. The engine works out how to display the world differently to each player. \r\n\r\nSince we don't want to leak information about the number of players, we can modify the protocol to  keep all player names (random) identifiers, except for the player receiving the status, who will be marked as 'Me'."},"comment":{"url":"https://api.github.com/repos/ZeusWPI/MOZAIC/issues/comments/344758012","html_url":"https://github.com/ZeusWPI/MOZAIC/issues/114#issuecomment-344758012","issue_url":"https://api.github.com/repos/ZeusWPI/MOZAIC/issues/114","id":344758012,"user":{"login":"iasoon","id":6320308,"avatar_url":"https://avatars1.githubusercontent.com/u/6320308?v=4","gravatar_id":"","url":"https://api.github.com/users/iasoon","html_url":"https://github.com/iasoon","followers_url":"https://api.github.com/users/iasoon/followers","following_url":"https://api.github.com/users/iasoon/following{/other_user}","gists_url":"https://api.github.com/users/iasoon/gists{/gist_id}","starred_url":"https://api.github.com/users/iasoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iasoon/subscriptions","organizations_url":"https://api.github.com/users/iasoon/orgs","repos_url":"https://api.github.com/users/iasoon/repos","events_url":"https://api.github.com/users/iasoon/events{/privacy}","received_events_url":"https://api.github.com/users/iasoon/received_events","type":"User","site_admin":false},"created_at":"2017-11-15T23:00:03Z","updated_at":"2017-11-15T23:00:03Z","author_association":"CONTRIBUTOR","body":"So, we discussed we'll implement this by replacing player names by numbers [1..num_players] in the planetwars protocol. In the state for a player, the player numbers will be rotated so that the receiving player will always be player 1.\r\n\r\nImportantly, the number 0 is not used, since it is falsy in many languages and could lead to really annoying bugs when writing `if planet.owner` :-)"}}
{"actor":{"display_login":"iasoon"}}