Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@masak

masak/1 Secret

Created June 29, 2015 13:34
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 masak/18bfb81f0f334e5e5516 to your computer and use it in GitHub Desktop.
Save masak/18bfb81f0f334e5e5516 to your computer and use it in GitHub Desktop.
Mini-challenge
((()())()()((()()())()()))
box 4, 0
fork 4; 1; 1, 3, 5, 7
box 1, 2
fork 1; 3; 0, 2
box 0, 4
box 2, 4
box 3, 2
box 5, 2
box 7, 2
fork 7; 3; 4, 6, 8
box 4, 4
fork 4; 5; 2, 4, 6
box 2, 6
box 4, 6
box 6, 6
box 6, 4
box 8, 4
,---,
| |
'---'
|
,-----------------------,
| | | |
,---, ,---, ,---, ,---,
| | | | | | | |
'---' '---' '---' '---'
| |
,-------, ,---------------,
| | | | |
,---, ,---, ,---, ,---, ,---,
| | | | | | | | | |
'---' '---' '---' '---' '---'
|
,---------------,
| | |
,---, ,---, ,---,
| | | | | |
'---' '---' '---'

First part (easy): rendering

Write a script that turns 2 into 3.

Second part (moderately hard): layout

Write a script that turns 1 into 2.

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