Skip to content

Instantly share code, notes, and snippets.

@btisdall
Created July 30, 2012 12:36
Show Gist options
  • Save btisdall/3206584 to your computer and use it in GitHub Desktop.
Save btisdall/3206584 to your computer and use it in GitHub Desktop.
- is this a single game ?
-- Y return the result
-- N - for each element, do
--- is elem a game ?
---- Y - play it and replace contents of element with result, continue
---- N - ascend to elem[0]
----- is elem[0] a game ?
------ Y - play it and replace contents of element with result, continue
------ N - ascend to elem[0][0]
------- ....
-- done
- next
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment