Skip to content

Instantly share code, notes, and snippets.

@geryxyz
Last active June 11, 2019 10:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geryxyz/b228d6535f5271aea6684f733d1d4380 to your computer and use it in GitHub Desktop.
Save geryxyz/b228d6535f5271aea6684f733d1d4380 to your computer and use it in GitHub Desktop.
A simple algorithm to calculate an aesthetically pleasing order of bunny shaped door ornaments.
"""
A simple algorithm to calculate
an aesthetically pleasing order of
bunny shaped door ornaments.
"""
colors = ['green', 'pink', 'blue', 'yellow']
for i in range(5):
for index, current in enumerate(colors):
print(current, end=' ')
if not index % 2:
print("top")
else:
print("reverse")
colors[0], colors[1] = colors[1], colors[0]
colors[2], colors[3] = colors[3], colors[2]
@geryxyz
Copy link
Author

geryxyz commented Jun 11, 2019

IMG_20180323_213507_HDR
IMG_20180324_225601_HDR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment