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*

4
  • \$\begingroup\$ +1. I like the tricks "_@#"[g[i]] and a+=(1-(d&2))*(1+(16*(d&1))) \$\endgroup\$ Commented Mar 15, 2011 at 3:21
  • \$\begingroup\$ (1+d%2*16) saves a few chars. \$\endgroup\$ Commented Mar 19, 2011 at 4:35
  • \$\begingroup\$ @Nabb: Indeed, that saves 4 characters, thanks for the suggestion! \$\endgroup\$ Commented Mar 23, 2011 at 20:13
  • \$\begingroup\$ 147 bytes \$\endgroup\$ Commented Mar 30, 2024 at 8:55