{"action":"created","issue":{"url":"https://api.github.com/repos/jhlywa/chess.js/issues/93","labels_url":"https://api.github.com/repos/jhlywa/chess.js/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/jhlywa/chess.js/issues/93/comments","events_url":"https://api.github.com/repos/jhlywa/chess.js/issues/93/events","html_url":"https://github.com/jhlywa/chess.js/issues/93","id":120885407,"number":93,"title":"es6 rewrite and support for PGN variations","user":{"login":"aaronfi","id":5179129,"avatar_url":"https://avatars.githubusercontent.com/u/5179129?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronfi","html_url":"https://github.com/aaronfi","followers_url":"https://api.github.com/users/aaronfi/followers","following_url":"https://api.github.com/users/aaronfi/following{/other_user}","gists_url":"https://api.github.com/users/aaronfi/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronfi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronfi/subscriptions","organizations_url":"https://api.github.com/users/aaronfi/orgs","repos_url":"https://api.github.com/users/aaronfi/repos","events_url":"https://api.github.com/users/aaronfi/events{/privacy}","received_events_url":"https://api.github.com/users/aaronfi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-07T22:39:29Z","updated_at":"2015-12-09T21:03:37Z","closed_at":null,"body":"Hello.\r\n\r\nI've been working on an extensive rewrite of chess.js for several months.  I was wondering if you or the community had any interest in my work -- or if I should just release it as a separate repo.  (\"chess-es6.js\"...?)\r\n\r\nThe biggest feature I added was PGN parser support for variations, as well as cursor semantics for iterating back and forth across moves.  Making a new move from anything other than the head of a variation implicitly creates a new variation.\r\n\r\n        test(\"many nested variations\", () => {\r\n            const pgn = '1. d4 (1. c4 (1. b4 (1. a4 a5) 1... b5) 1... c5) (1. e4 (1. f4 (1. g4 (1. h4 h5) 1... g5) 1... f5) 1... e5) 1... d5 (1... c5 (1... b5 (1... a5))) (1... e5 (1... f5 (1... g5 2. g3) 2. f3) 2. e3) 2. e3 (2. f3 f6) (2. g3 g6) (2. h3 h6) 2... e6';\r\n            chess.loadPgn(pgn);\r\n            assert.equal(chess.toPgn(), pgn, \"PGN parser failed to reassemble the given PGN text\");\r\n        });\r\n\r\nThanks.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jhlywa/chess.js/issues/comments/163391090","html_url":"https://github.com/jhlywa/chess.js/issues/93#issuecomment-163391090","issue_url":"https://api.github.com/repos/jhlywa/chess.js/issues/93","id":163391090,"user":{"login":"aaronfi","id":5179129,"avatar_url":"https://avatars.githubusercontent.com/u/5179129?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronfi","html_url":"https://github.com/aaronfi","followers_url":"https://api.github.com/users/aaronfi/followers","following_url":"https://api.github.com/users/aaronfi/following{/other_user}","gists_url":"https://api.github.com/users/aaronfi/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronfi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronfi/subscriptions","organizations_url":"https://api.github.com/users/aaronfi/orgs","repos_url":"https://api.github.com/users/aaronfi/repos","events_url":"https://api.github.com/users/aaronfi/events{/privacy}","received_events_url":"https://api.github.com/users/aaronfi/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T21:03:37Z","updated_at":"2015-12-09T21:03:37Z","body":"Thanks.  I'll post some perf numbers shortly.\r\nES6 does have a \"const\".\r\n\r\n\r\n"}}