GitHub PullRequestReviewCommentEvent at 2014-04-14 13:08:02
Repository: nightBird-03-mouse
Actor: Zhigalov
Payload: {"comment":{"url":"https://api.github.com/repos/urfu-code/nightBird-03-mouse/pulls/comments/11582813","id":11582813,"diff_hunk":"@@ -0,0 +1,50 @@\n+import java.io.File;\n+import java.io.FileInputStream;\n+import java.io.FileNotFoundException;\n+import java.io.IOException;\n+import java.net.URISyntaxException;\n+import java.security.CodeSource;\n+\n+\n+public class Actuator {\n+\t\n+\tpublic static void main(String[] args) throws IOException, URISyntaxException {\n+\t\tString name = \"Norushka\";\n+\t\tCodeSource codeSource = Actuator.class.getProtectionDomain().getCodeSource();\n+\n+\t\tFile file = new File(new File(codeSource.getLocation().toURI().getPath()).getParentFile().getPath(), \"src/input.txt\");\n+\t\ttry {\n+\t\t\tFileInputStream stream = new FileInputStream(file);\n+\t\t\ttry {\n+\t\t\t\tPrintableWoodLoader wl = new PrintableWoodLoader();\n+\t\t\t\tPrintableWood wood = wl.Load(stream);\n+\n+\t\t\t\twood.createWoodman(name, new Point(1, 1), new Point (7, 2));\n+\t\t\t\tMouse norushka = new Mouse(name);\n+\t\t\t\tDirection latestDirection = norushka.NextMove(Action.Ok); // первый шаг, мышь решает, куда идти после него","path":"src/Actuator.java","position":24,"original_position":24,"commit_id":"cdc326e90643a4ad2c5297be3ba84949e5004b95","original_commit_id":"cdc326e90643a4ad2c5297be3ba84949e5004b95","user":{"login":"Zhigalov","id":1654243,"avatar_url":"https://avatars.githubusercontent.com/u/1654243?","gravatar_id":"c8c3c2a864f24f9f1261bd9e8c107583","url":"https://api.github.com/users/Zhigalov","html_url":"https://github.com/Zhigalov","followers_url":"https://api.github.com/users/Zhigalov/followers","following_url":"https://api.github.com/users/Zhigalov/following{/other_user}","gists_url":"https://api.github.com/users/Zhigalov/gists{/gist_id}","starred_url":"https://api.github.com/users/Zhigalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zhigalov/subscriptions","organizations_url":"https://api.github.com/users/Zhigalov/orgs","repos_url":"https://api.github.com/users/Zhigalov/repos","events_url":"https://api.github.com/users/Zhigalov/events{/privacy}","received_events_url":"https://api.github.com/users/Zhigalov/received_events","type":"User","site_admin":false},"body":"В этот момент у мыши нет никаких знаний. На основании чего происходит выбор?","created_at":"2014-04-14T13:08:02Z","updated_at":"2014-04-14T13:08:02Z","html_url":"https://github.com/urfu-code/nightBird-03-mouse/pull/7#discussion_r11582813","pull_request_url":"https://api.github.com/repos/urfu-code/nightBird-03-mouse/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/urfu-code/nightBird-03-mouse/pulls/comments/11582813"},"html":{"href":"https://github.com/urfu-code/nightBird-03-mouse/pull/7#discussion_r11582813"},"pull_request":{"href":"https://api.github.com/repos/urfu-code/nightBird-03-mouse/pulls/7"}}}}