{"action":"created","issue":{"url":"https://api.github.com/repos/daviscodesbugs/gamepiece-json/issues/51","repository_url":"https://api.github.com/repos/daviscodesbugs/gamepiece-json","labels_url":"https://api.github.com/repos/daviscodesbugs/gamepiece-json/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/daviscodesbugs/gamepiece-json/issues/51/comments","events_url":"https://api.github.com/repos/daviscodesbugs/gamepiece-json/issues/51/events","html_url":"https://github.com/daviscodesbugs/gamepiece-json/pull/51","id":185585273,"number":51,"title":"Add Blink definition","user":{"login":"schmich","id":1562839,"avatar_url":"https://avatars.githubusercontent.com/u/1562839?v=3","gravatar_id":"","url":"https://api.github.com/users/schmich","html_url":"https://github.com/schmich","followers_url":"https://api.github.com/users/schmich/followers","following_url":"https://api.github.com/users/schmich/following{/other_user}","gists_url":"https://api.github.com/users/schmich/gists{/gist_id}","starred_url":"https://api.github.com/users/schmich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schmich/subscriptions","organizations_url":"https://api.github.com/users/schmich/orgs","repos_url":"https://api.github.com/users/schmich/repos","events_url":"https://api.github.com/users/schmich/events{/privacy}","received_events_url":"https://api.github.com/users/schmich/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-27T06:40:32Z","updated_at":"2016-10-27T13:42:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/daviscodesbugs/gamepiece-json/pulls/51","html_url":"https://github.com/daviscodesbugs/gamepiece-json/pull/51","diff_url":"https://github.com/daviscodesbugs/gamepiece-json/pull/51.diff","patch_url":"https://github.com/daviscodesbugs/gamepiece-json/pull/51.patch"},"body":"Sources: [Amazon](https://www.amazon.com/Blink-The-Worlds-Fastest-Game/dp/B0037W5Y2W), [BGG](http://boardgamegeek.com/boardgame/1197/blink), and my own copy.\r\n\r\nAll cards in Blink are unique. There are 6 colors, 6 shapes, and 1-5 objects on a card, so you'd expect 6 * 6 * 5 = 180 cards, but there are only 60, so they don't include every color-shape-number combination.\r\n\r\nI recorded the cards by hand and used a script to translate them to JSON.\r\n\r\n```ruby\r\nrequire 'json'\r\nrequire 'set'\r\n\r\ncards = %w(\r\n  3rb 3bc 1gc 1ys 4ed 2us 1yt 2gb 5gb 3bf 2rb 2yc 5rc 2yd 5ut\r\n  1ec 3ed 3rs 5ef 1eb 3yb 5bs 3yf 1rd 2es 4us 5ud 3ud 2bd 4rt\r\n  1ub 4ys 4yc 5rf 4rf 5yt 2gf 2ef 1bf 4gd 1bs 4bt 5es 2bt 4ec\r\n  2ut 5bb 2rc 3uc 5yd 1uf 4ub 4gf 3gt 5gc 4bb 1rt 3gs 3et 1gd\r\n)\r\n\r\nraise 'Invalid data.' if Set.new(cards).count != 60\r\n\r\ncolors = {\r\n  b: 'brown',\r\n  r: 'red',\r\n  g: 'gray',\r\n  y: 'yellow',\r\n  e: 'green',\r\n  u: 'blue'\r\n}\r\n\r\nshapes = {\r\n  c: 'crescent',\r\n  b: 'bolt',\r\n  s: 'star',\r\n  d: 'droplet',\r\n  f: 'flower',\r\n  t: 'triangle'\r\n}\r\n\r\ncards = cards.map do |c|\r\n  num, color, shape = c[0].to_i, colors[c[1].to_sym], shapes[c[2].to_sym]\r\n  raise 'Invalid data.' if !color || !shape || num < 1 || num > 5\r\n  { color: color, shape: shape, number: num, count: 1 }\r\nend.sort_by { |c| [c[:color], c[:shape], c[:number]] }\r\n\r\nputs JSON.pretty_generate(cards, indent: '    ')\r\n```"},"comment":{"url":"https://api.github.com/repos/daviscodesbugs/gamepiece-json/issues/comments/256644096","html_url":"https://github.com/daviscodesbugs/gamepiece-json/pull/51#issuecomment-256644096","issue_url":"https://api.github.com/repos/daviscodesbugs/gamepiece-json/issues/51","id":256644096,"user":{"login":"daviscodesbugs","id":22112533,"avatar_url":"https://avatars.githubusercontent.com/u/22112533?v=3","gravatar_id":"","url":"https://api.github.com/users/daviscodesbugs","html_url":"https://github.com/daviscodesbugs","followers_url":"https://api.github.com/users/daviscodesbugs/followers","following_url":"https://api.github.com/users/daviscodesbugs/following{/other_user}","gists_url":"https://api.github.com/users/daviscodesbugs/gists{/gist_id}","starred_url":"https://api.github.com/users/daviscodesbugs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daviscodesbugs/subscriptions","organizations_url":"https://api.github.com/users/daviscodesbugs/orgs","repos_url":"https://api.github.com/users/daviscodesbugs/repos","events_url":"https://api.github.com/users/daviscodesbugs/events{/privacy}","received_events_url":"https://api.github.com/users/daviscodesbugs/received_events","type":"User","site_admin":false},"created_at":"2016-10-27T13:42:43Z","updated_at":"2016-10-27T13:42:43Z","body":"Very impressive! :+1: \r\nMerging."}}
{"actor":{"display_login":"daviscodesbugs"}}