Skip to content

Instantly share code, notes, and snippets.

@KCreate
Created December 9, 2015 15:11
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 KCreate/f4bde34937d21c53aa14 to your computer and use it in GitHub Desktop.
Save KCreate/f4bde34937d21c53aa14 to your computer and use it in GitHub Desktop.
playcodemonkey.com universal solver
[bananas].map (item) ->
item.map (item) ->
item.defaultValues=monkey.defaultValues
@KCreate
Copy link
Author

KCreate commented Dec 9, 2015

If you want the bushes, turtles and even the islands to be sucked up too, just extend the code like that:

[bananas, bushes, islands, turtles].map (item) ->
    item.map (item) ->
        item.defaultValues=monkey.defaultValues

@KCreate
Copy link
Author

KCreate commented Dec 11, 2015

Here's an easier way:

monkey.caughtBananas=bananas;step 1;

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