Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

15
  • \$\begingroup\$ Any restrictions on how slowly or quickly the animation must run? \$\endgroup\$ Commented Dec 27, 2016 at 5:23
  • \$\begingroup\$ Perhaps it's worth specifying that the type of car that moves alternates each step. \$\endgroup\$ Commented Dec 27, 2016 at 5:37
  • \$\begingroup\$ @xnor I was thinking at least 5 or 10 ms per loop, but I'm not really sure if that would be difficult to measure. \$\endgroup\$ Commented Dec 27, 2016 at 5:39
  • 3
    \$\begingroup\$ Does the density mean that the density has to be that value, or just that each pixel has a probability d to be filled? Also, do we have to assign the color of the cars randomly or not? If randomly, again is it ok if they just have a 50-50 chance of being either colour? \$\endgroup\$ Commented Dec 27, 2016 at 12:29
  • 1
    \$\begingroup\$ @JarkoDubbeldam The density has to be that value. They have a 50-50 chance of being each color. However I answered late so answers may be different. Cars can move up or left. \$\endgroup\$ Commented Dec 27, 2016 at 22:35