{"action":"closed","issue":{"url":"https://api.github.com/repos/thyer/CS340winter2016/issues/496","repository_url":"https://api.github.com/repos/thyer/CS340winter2016","labels_url":"https://api.github.com/repos/thyer/CS340winter2016/issues/496/labels{/name}","comments_url":"https://api.github.com/repos/thyer/CS340winter2016/issues/496/comments","events_url":"https://api.github.com/repos/thyer/CS340winter2016/issues/496/events","html_url":"https://github.com/thyer/CS340winter2016/issues/496","id":143566098,"number":496,"title":"Soldier count sometimes increments incorrectly","user":{"login":"DallonTG","id":16548246,"avatar_url":"https://avatars.githubusercontent.com/u/16548246?v=3","gravatar_id":"","url":"https://api.github.com/users/DallonTG","html_url":"https://github.com/DallonTG","followers_url":"https://api.github.com/users/DallonTG/followers","following_url":"https://api.github.com/users/DallonTG/following{/other_user}","gists_url":"https://api.github.com/users/DallonTG/gists{/gist_id}","starred_url":"https://api.github.com/users/DallonTG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DallonTG/subscriptions","organizations_url":"https://api.github.com/users/DallonTG/orgs","repos_url":"https://api.github.com/users/DallonTG/repos","events_url":"https://api.github.com/users/DallonTG/events{/privacy}","received_events_url":"https://api.github.com/users/DallonTG/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/thyer/CS340winter2016/labels/invalid","name":"invalid","color":"e6e6e6"},{"url":"https://api.github.com/repos/thyer/CS340winter2016/labels/P4:%20Incorrect%20behavior%20that%20doesn't%20affect%20gameplay","name":"P4: Incorrect behavior that doesn't affect gameplay","color":"fef2c0"},{"url":"https://api.github.com/repos/thyer/CS340winter2016/labels/Phase%203","name":"Phase 3","color":"c7def8"},{"url":"https://api.github.com/repos/thyer/CS340winter2016/labels/Team%2018","name":"Team 18","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-25T18:46:56Z","updated_at":"2016-03-30T18:31:06Z","closed_at":"2016-03-30T18:31:06Z","body":"**Description**\r\nSometimes the soldier count increments incorrectly. For example, I play a soldier, and the count goes up by two. This also messes up largest army. This has happened to two of us. Here is an example showing me having a count of 4 first (and no largest army) and then after I played the soldier, the count went to 6.\r\n\r\nBefore:\r\n![beforesold](https://cloud.githubusercontent.com/assets/16548246/14051224/e0ae317a-f286-11e5-926b-dec4ff9ae464.png)\r\n\r\nAfter:\r\n![count6](https://cloud.githubusercontent.com/assets/16548246/14051255/221e766a-f287-11e5-85b3-e78f9faf3824.PNG)\r\n\r\nOnce the screen said I had 7 soldiers, I actually got largest army. (This is probably when I first really had enough to get largest army).\r\n\r\nI think this output from the server is related to the error:\r\n`Exception in thread \"main\" java.lang.NumberFormatException: For input string: \"localhost\"\r\n        at java.lang.NumberFormatException.forInputString(Unknown Source)\r\n        at java.lang.Integer.parseInt(Unknown Source)\r\n        at java.lang.Integer.parseInt(Unknown Source)\r\n        at server.Server.main(Server.java:86)`\r\n\r\n**Steps to reproduce**\r\nThis is unfortunately a bit inconsistent, so it may take time to reproduce.\r\n1. Play a game.\r\n2. Buy dev cards.\r\n3. Keep playing soldier cards until it starts acting odd."}}