Create a gist now

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.

Show comment
Hide comment
@ujjwalt

ujjwalt Sep 20, 2015

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

ujjwalt commented Sep 20, 2015

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

@mukundmr

This comment has been minimized.

Show comment
Hide comment
@mukundmr

mukundmr Sep 22, 2015

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

mukundmr 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.

Show comment
Hide comment
@shukla2009

shukla2009 Sep 22, 2015

⎕ is this quad ? or squad ?

shukla2009 commented Sep 22, 2015

⎕ is this quad ? or squad ?

@jayfoad

This comment has been minimized.

Show comment
Hide comment
@jayfoad

jayfoad 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.

Owner

jayfoad 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.

Show comment
Hide comment
Owner

jayfoad commented Oct 16, 2015

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