{"action":"created","issue":{"url":"https://api.github.com/repos/magarena/magarena/issues/500","labels_url":"https://api.github.com/repos/magarena/magarena/issues/500/labels{/name}","comments_url":"https://api.github.com/repos/magarena/magarena/issues/500/comments","events_url":"https://api.github.com/repos/magarena/magarena/issues/500/events","html_url":"https://github.com/magarena/magarena/issues/500","id":116747616,"number":500,"title":"Bad play simple test: Ai loses because it does not block.","user":{"login":"lodici","id":2443519,"avatar_url":"https://avatars.githubusercontent.com/u/2443519?v=3","gravatar_id":"","url":"https://api.github.com/users/lodici","html_url":"https://github.com/lodici","followers_url":"https://api.github.com/users/lodici/followers","following_url":"https://api.github.com/users/lodici/following{/other_user}","gists_url":"https://api.github.com/users/lodici/gists{/gist_id}","starred_url":"https://api.github.com/users/lodici/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lodici/subscriptions","organizations_url":"https://api.github.com/users/lodici/orgs","repos_url":"https://api.github.com/users/lodici/repos","events_url":"https://api.github.com/users/lodici/events{/privacy}","received_events_url":"https://api.github.com/users/lodici/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-11-13T11:05:10Z","updated_at":"2015-11-14T08:40:45Z","closed_at":"2015-11-14T01:49:51Z","body":"Whilst looking into the blacklist mechanism (see #496) I was trying to think of an initial test that might catch the flying-on-flying play mentioned. I ended up getting a bit diverted after creating the following very simple test (see attached save game file). Basically, the gameplay I would expect (unless I am missing something) is -\r\n\r\n1. I and the AI each have one health.\r\n2. I have a single 1/1 flying card in play which I attack with.\r\n3. AI has a 2/2 non-flying card in play __but__ has [Jump](http://static.tappedout.net/mtg-cards-2/2010-core-set/jump/jump.jpg) in hand.\r\n4. AI should play Jump and give the 2/2 flying.\r\n5. AI blocks, kills my card.\r\n6. Next turn AI attacks and wins.\r\n\r\nWhat I found was that all AIs _except MCTS_ did nothing and lost the game. However, having played Jump, MCTS did not block and lost the game as well!\r\n\r\nI think if we can figure out how to get the AIs to win this very simple scenario we might have a better understanding in addressing some of the issues raised in #496.\r\n\r\n[AiLosesCauseItWontBlock.game.txt](https://github.com/magarena/magarena/files/33870/AiLosesCauseItWontBlock.game.txt)\r\n_This is the ``game`` file. Save to ``saved_games``, remove ``txt`` extension (only way to attach it here on Github) and you can load from the main menu if running in dev mode. Alternatively it should be clear enough if you want to set up an equivalent test class._\r\n"},"comment":{"url":"https://api.github.com/repos/magarena/magarena/issues/comments/156670620","html_url":"https://github.com/magarena/magarena/issues/500#issuecomment-156670620","issue_url":"https://api.github.com/repos/magarena/magarena/issues/500","id":156670620,"user":{"login":"melvinzhang","id":1620634,"avatar_url":"https://avatars.githubusercontent.com/u/1620634?v=3","gravatar_id":"","url":"https://api.github.com/users/melvinzhang","html_url":"https://github.com/melvinzhang","followers_url":"https://api.github.com/users/melvinzhang/followers","following_url":"https://api.github.com/users/melvinzhang/following{/other_user}","gists_url":"https://api.github.com/users/melvinzhang/gists{/gist_id}","starred_url":"https://api.github.com/users/melvinzhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/melvinzhang/subscriptions","organizations_url":"https://api.github.com/users/melvinzhang/orgs","repos_url":"https://api.github.com/users/melvinzhang/repos","events_url":"https://api.github.com/users/melvinzhang/events{/privacy}","received_events_url":"https://api.github.com/users/melvinzhang/received_events","type":"User","site_admin":false},"created_at":"2015-11-14T08:40:45Z","updated_at":"2015-11-14T08:40:45Z","body":"\"git pull\" will not automatically overwrite a file on checkout, it will instead not update your working directory to master. This will only occur when the filename are the same, which should be not that common as long as we use descriptive file names."}}