Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
The Snakes and Ladders Jugalbandi from Functional Conf 2015, in APL
config30(3 5 11 20 17 19 21 27)(22 8 26 29 4 7 9 1)
turn{s f t n+{'throw ',}?6 n>s: (fn)t,n}
{}{config turn }{=30}1
@ujjwalt

This comment has been minimized.

Copy link

commented Sep 20, 2015

Holy shit!
Damn I missed your talk. Please link to the slides.

@mukundmr

This comment has been minimized.

Copy link

commented Sep 22, 2015

gives me an invalid token when I try to run it online using the tryapl.org website.

@shukla2009

This comment has been minimized.

Copy link

commented Sep 22, 2015

⎕ is this quad ? or squad ?

@jayfoad

This comment has been minimized.

Copy link
Owner Author

commented Oct 12, 2015

@mukundmr, @shukla2009: ⎕ is quad, and I'm using it to print some output as the game progresses. Unfortunately tryapl.org does not support this sort of input/output. Sorry! I'll think about a better way of writing it.

@jayfoad

This comment has been minimized.

Copy link
Owner Author

commented Oct 16, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.