{"action":"created","issue":{"url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/6352","labels_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/6352/labels{/name}","comments_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/6352/comments","events_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/6352/events","html_url":"https://github.com/code-dot-org/code-dot-org/pull/6352","id":126979222,"number":6352,"title":"First draft of randomized conditionals","user":{"login":"Hamms","id":244100,"avatar_url":"https://avatars.githubusercontent.com/u/244100?v=3","gravatar_id":"","url":"https://api.github.com/users/Hamms","html_url":"https://github.com/Hamms","followers_url":"https://api.github.com/users/Hamms/followers","following_url":"https://api.github.com/users/Hamms/following{/other_user}","gists_url":"https://api.github.com/users/Hamms/gists{/gist_id}","starred_url":"https://api.github.com/users/Hamms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hamms/subscriptions","organizations_url":"https://api.github.com/users/Hamms/orgs","repos_url":"https://api.github.com/users/Hamms/repos","events_url":"https://api.github.com/users/Hamms/events{/privacy}","received_events_url":"https://api.github.com/users/Hamms/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"Bjvanminnen","id":1767466,"avatar_url":"https://avatars.githubusercontent.com/u/1767466?v=3","gravatar_id":"","url":"https://api.github.com/users/Bjvanminnen","html_url":"https://github.com/Bjvanminnen","followers_url":"https://api.github.com/users/Bjvanminnen/followers","following_url":"https://api.github.com/users/Bjvanminnen/following{/other_user}","gists_url":"https://api.github.com/users/Bjvanminnen/gists{/gist_id}","starred_url":"https://api.github.com/users/Bjvanminnen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bjvanminnen/subscriptions","organizations_url":"https://api.github.com/users/Bjvanminnen/orgs","repos_url":"https://api.github.com/users/Bjvanminnen/repos","events_url":"https://api.github.com/users/Bjvanminnen/events{/privacy}","received_events_url":"https://api.github.com/users/Bjvanminnen/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-01-15T23:25:02Z","updated_at":"2016-01-26T22:28:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/code-dot-org/code-dot-org/pulls/6352","html_url":"https://github.com/code-dot-org/code-dot-org/pull/6352","diff_url":"https://github.com/code-dot-org/code-dot-org/pull/6352.diff","patch_url":"https://github.com/code-dot-org/code-dot-org/pull/6352.patch"},"body":"Adds a set of new syntax to Bee levels for randomized conditional cells;\r\nthat is, cells that can contain one of a number of kinds of content.\r\nThis will let the cells hidden by clouds be a true mystery.\r\n\r\nThis also means that levels that use these cells will have a number of\r\npossible grids; if that's the case, we run the user's code against all\r\npossible grids. If their code succeeds on all, then we randomly select\r\none of the grids to animate on top of. If their code fails on any, we\r\nrandomly select from one of the failing grids to display.\r\n\r\n### Success:\r\n![success](https://cloud.githubusercontent.com/assets/244100/12429683/79c36846-bea0-11e5-88ce-fabb067fef1f.gif)\r\n\r\n### Failure:\r\n![failure](https://cloud.githubusercontent.com/assets/244100/12429688/80bf1da2-bea0-11e5-9dfd-bb1a0b3df13c.gif)\r\n\r\nAlso adds some new styling to Levelbuilder:\r\n![image](https://cloud.githubusercontent.com/assets/244100/12494421/ef2efab0-c03e-11e5-882d-7d8ef23cc5b0.png)\r\n\r\n\r\nNote that this PR is in-progress. Remaining TODOs:\r\n- [x] clean up \"resetting\" after running the code tests\r\n- [x] clean up levelbuilder parsing\r\n- [x] document/validate new features in levelbuilder\r\n- [x] tests!\r\n- [ ] add randomized numeric ranges (optional, may include in a separate PR)\r\n- [ ] hide grid elements when they're behind the cloud (optional, may include in a separate PR)\r\n- [x] fix resizing instructions (actually fixed in #6445)"},"comment":{"url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/comments/175267568","html_url":"https://github.com/code-dot-org/code-dot-org/pull/6352#issuecomment-175267568","issue_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/6352","id":175267568,"user":{"login":"islemaster","id":1615761,"avatar_url":"https://avatars.githubusercontent.com/u/1615761?v=3","gravatar_id":"","url":"https://api.github.com/users/islemaster","html_url":"https://github.com/islemaster","followers_url":"https://api.github.com/users/islemaster/followers","following_url":"https://api.github.com/users/islemaster/following{/other_user}","gists_url":"https://api.github.com/users/islemaster/gists{/gist_id}","starred_url":"https://api.github.com/users/islemaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/islemaster/subscriptions","organizations_url":"https://api.github.com/users/islemaster/orgs","repos_url":"https://api.github.com/users/islemaster/repos","events_url":"https://api.github.com/users/islemaster/events{/privacy}","received_events_url":"https://api.github.com/users/islemaster/received_events","type":"User","site_admin":false},"created_at":"2016-01-26T22:28:19Z","updated_at":"2016-01-26T22:28:19Z","body":":scream: It makes me so happy that \"Quantum Bee\" is a thing now."}}